Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-64152

Pipeline svn checkout do not fails intermitently

      Checking out of a wrong SVN URI throws and svn exception but the stage finishes "Success" the first time the pipeline is built. Next build, the exception is thrown again and now the stage finishes "Failure". Next build, again the exception is thrown but now the stage finishes "Success" ... next time "Failure"... and so on and so forth.

      To reproduce the bug, try the following pipeline and build it several times. The Repo URI has an deliberate error on the last folder, so it should fail allways:

      ''''
      pipeline {
      agent any
      stages {

      stage("Checkout SVN Folder"){
      steps

      { checkout([$class: 'SubversionSCM', additionalCredentials: [], excludedCommitMessages: '', excludedRegions: '', excludedRevprop: '', excludedUsers: '', filterChangelog: false, ignoreDirPropChanges: false, includedRegions: '', locations: [[cancelProcessOnExternalsFail: true, credentialsId: '', depthOption: 'infinity', ignoreExternalsOption: true, local: 'folder/styles', remote: 'http://svn.apache.org/repos/asf/xml/stylebook/trunk/rstiiiles']], quietOperation: true, workspaceUpdater: [$class: 'UpdateUpdater']]) }

      }
      }
      }
      ''''

          [JENKINS-64152] Pipeline svn checkout do not fails intermitently

          Joaquín Cañadas created issue -
          Joaquín Cañadas made changes -
          Description Original: Checking out of a wrong SVN URI throws and svn exception but the stage finishes "Success" the first time the pipeline is built. Next build, the exception is thrown again and now the stage finishes "Failure". Next build, again the exception is thrown but now the stage finishes "Success" ... next time "Failure"... and so on and so forth.

          To reproduce the bug, try the following pipeline and build it several times. The Repo URI has an deliberate error on the last folder, so it should fail allways:

          {{pipeline {}}
          {{  agent any}}
          {{  }}{{stages {}}{{stage("Checkout SVN Folder"){}}
          {{  }}{{  }}{{steps {}}
          {{  }}{{  }}{{  }}{{checkout([$class: 'SubversionSCM', additionalCredentials: [], excludedCommitMessages: '', excludedRegions: '', excludedRevprop: '', excludedUsers: '', filterChangelog: false, ignoreDirPropChanges: false, includedRegions: '', locations: [[cancelProcessOnExternalsFail: true, credentialsId: '', depthOption: 'infinity', ignoreExternalsOption: true, local: 'folder/styles', remote: 'http://svn.apache.org/repos/asf/xml/stylebook/trunk/rstiiiles']], quietOperation: true, workspaceUpdater: [$class: 'UpdateUpdater']]) }}

          {{    }}}

          {{  }}}

          {{}}}
          {{}}

           
          New: Checking out of a wrong SVN URI throws and svn exception but the stage finishes "Success" the first time the pipeline is built. Next build, the exception is thrown again and now the stage finishes "Failure". Next build, again the exception is thrown but now the stage finishes "Success" ... next time "Failure"... and so on and so forth.

          To reproduce the bug, try the following pipeline and build it several times. The Repo URI has an deliberate error on the last folder, so it should fail allways:

          {quote}
          pipeline {
              agent any
              stages {

                  stage("Checkout SVN Folder"){
                      steps {
                          checkout([$class: 'SubversionSCM', additionalCredentials: [], excludedCommitMessages: '', excludedRegions: '', excludedRevprop: '', excludedUsers: '', filterChangelog: false, ignoreDirPropChanges: false, includedRegions: '', locations: [[cancelProcessOnExternalsFail: true, credentialsId: '', depthOption: 'infinity', ignoreExternalsOption: true, local: 'folder/styles', remote: 'http://svn.apache.org/repos/asf/xml/stylebook/trunk/rstiiiles']], quietOperation: true, workspaceUpdater: [$class: 'UpdateUpdater']]) }
                  }
              }
          }
          {quote}
          Joaquín Cañadas made changes -
          Description Original: Checking out of a wrong SVN URI throws and svn exception but the stage finishes "Success" the first time the pipeline is built. Next build, the exception is thrown again and now the stage finishes "Failure". Next build, again the exception is thrown but now the stage finishes "Success" ... next time "Failure"... and so on and so forth.

          To reproduce the bug, try the following pipeline and build it several times. The Repo URI has an deliberate error on the last folder, so it should fail allways:

          {quote}
          pipeline {
              agent any
              stages {

                  stage("Checkout SVN Folder"){
                      steps {
                          checkout([$class: 'SubversionSCM', additionalCredentials: [], excludedCommitMessages: '', excludedRegions: '', excludedRevprop: '', excludedUsers: '', filterChangelog: false, ignoreDirPropChanges: false, includedRegions: '', locations: [[cancelProcessOnExternalsFail: true, credentialsId: '', depthOption: 'infinity', ignoreExternalsOption: true, local: 'folder/styles', remote: 'http://svn.apache.org/repos/asf/xml/stylebook/trunk/rstiiiles']], quietOperation: true, workspaceUpdater: [$class: 'UpdateUpdater']]) }
                  }
              }
          }
          {quote}
          New: Checking out of a wrong SVN URI throws and svn exception but the stage finishes "Success" the first time the pipeline is built. Next build, the exception is thrown again and now the stage finishes "Failure". Next build, again the exception is thrown but now the stage finishes "Success" ... next time "Failure"... and so on and so forth.

          To reproduce the bug, try the following pipeline and build it several times. The Repo URI has an deliberate error on the last folder, so it should fail allways:

          {{pipeline {
              agent any
              stages {

                  stage("Checkout SVN Folder"){
                      steps {
                          checkout([$class: 'SubversionSCM', additionalCredentials: [], excludedCommitMessages: '', excludedRegions: '', excludedRevprop: '', excludedUsers: '', filterChangelog: false, ignoreDirPropChanges: false, includedRegions: '', locations: [[cancelProcessOnExternalsFail: true, credentialsId: '', depthOption: 'infinity', ignoreExternalsOption: true, local: 'folder/styles', remote: 'http://svn.apache.org/repos/asf/xml/stylebook/trunk/rstiiiles']], quietOperation: true, workspaceUpdater: [$class: 'UpdateUpdater']]) }
                  }
              }
          }
          }}
          Joaquín Cañadas made changes -
          Description Original: Checking out of a wrong SVN URI throws and svn exception but the stage finishes "Success" the first time the pipeline is built. Next build, the exception is thrown again and now the stage finishes "Failure". Next build, again the exception is thrown but now the stage finishes "Success" ... next time "Failure"... and so on and so forth.

          To reproduce the bug, try the following pipeline and build it several times. The Repo URI has an deliberate error on the last folder, so it should fail allways:

          {{pipeline {
              agent any
              stages {

                  stage("Checkout SVN Folder"){
                      steps {
                          checkout([$class: 'SubversionSCM', additionalCredentials: [], excludedCommitMessages: '', excludedRegions: '', excludedRevprop: '', excludedUsers: '', filterChangelog: false, ignoreDirPropChanges: false, includedRegions: '', locations: [[cancelProcessOnExternalsFail: true, credentialsId: '', depthOption: 'infinity', ignoreExternalsOption: true, local: 'folder/styles', remote: 'http://svn.apache.org/repos/asf/xml/stylebook/trunk/rstiiiles']], quietOperation: true, workspaceUpdater: [$class: 'UpdateUpdater']]) }
                  }
              }
          }
          }}
          New: Checking out of a wrong SVN URI throws and svn exception but the stage finishes "Success" the first time the pipeline is built. Next build, the exception is thrown again and now the stage finishes "Failure". Next build, again the exception is thrown but now the stage finishes "Success" ... next time "Failure"... and so on and so forth.

          To reproduce the bug, try the following pipeline and build it several times. The Repo URI has an deliberate error on the last folder, so it should fail allways:

          {{pipeline {}}
          {{ agent any}}
          {{ stages {}}{{stage("Checkout SVN Folder"){}}
          {{ steps}}{{{ checkout([$class: 'SubversionSCM', additionalCredentials: [], excludedCommitMessages: '', excludedRegions: '', excludedRevprop: '', excludedUsers: '', filterChangelog: false, ignoreDirPropChanges: false, includedRegions: '', locations: [[cancelProcessOnExternalsFail: true, credentialsId: '', depthOption: 'infinity', ignoreExternalsOption: true, local: 'folder/styles', remote: 'http://svn.apache.org/repos/asf/xml/stylebook/trunk/rstiiiles']], quietOperation: true, workspaceUpdater: [$class: 'UpdateUpdater']]) }}}{{}}}
          {{ }}}
          {{ }}}
          Joaquín Cañadas made changes -
          Description Original: Checking out of a wrong SVN URI throws and svn exception but the stage finishes "Success" the first time the pipeline is built. Next build, the exception is thrown again and now the stage finishes "Failure". Next build, again the exception is thrown but now the stage finishes "Success" ... next time "Failure"... and so on and so forth.

          To reproduce the bug, try the following pipeline and build it several times. The Repo URI has an deliberate error on the last folder, so it should fail allways:

          {{pipeline {}}
          {{ agent any}}
          {{ stages {}}{{stage("Checkout SVN Folder"){}}
          {{ steps}}{{{ checkout([$class: 'SubversionSCM', additionalCredentials: [], excludedCommitMessages: '', excludedRegions: '', excludedRevprop: '', excludedUsers: '', filterChangelog: false, ignoreDirPropChanges: false, includedRegions: '', locations: [[cancelProcessOnExternalsFail: true, credentialsId: '', depthOption: 'infinity', ignoreExternalsOption: true, local: 'folder/styles', remote: 'http://svn.apache.org/repos/asf/xml/stylebook/trunk/rstiiiles']], quietOperation: true, workspaceUpdater: [$class: 'UpdateUpdater']]) }}}{{}}}
          {{ }}}
          {{ }}}
          New: Checking out of a wrong SVN URI throws and svn exception but the stage finishes "Success" the first time the pipeline is built. Next build, the exception is thrown again and now the stage finishes "Failure". Next build, again the exception is thrown but now the stage finishes "Success" ... next time "Failure"... and so on and so forth.

          To reproduce the bug, try the following pipeline and build it several times. The Repo URI has an deliberate error on the last folder, so it should fail allways:

           
          {quote}pipeline {
           agent any
           stages {

          stage("Checkout SVN Folder"){
           steps {
           checkout([$class: 'SubversionSCM', additionalCredentials: [], excludedCommitMessages: '', excludedRegions: '', excludedRevprop: '', excludedUsers: '', filterChangelog: false, ignoreDirPropChanges: false, includedRegions: '', locations: [[cancelProcessOnExternalsFail: true, credentialsId: '', depthOption: 'infinity', ignoreExternalsOption: true, local: 'folder/styles', remote: 'http://svn.apache.org/repos/asf/xml/stylebook/trunk/rstiiiles']], quietOperation: true, workspaceUpdater: [$class: 'UpdateUpdater']]) }
           }
           }
          }
          {quote}
           
          Joaquín Cañadas made changes -
          Description Original: Checking out of a wrong SVN URI throws and svn exception but the stage finishes "Success" the first time the pipeline is built. Next build, the exception is thrown again and now the stage finishes "Failure". Next build, again the exception is thrown but now the stage finishes "Success" ... next time "Failure"... and so on and so forth.

          To reproduce the bug, try the following pipeline and build it several times. The Repo URI has an deliberate error on the last folder, so it should fail allways:

           
          {quote}pipeline {
           agent any
           stages {

          stage("Checkout SVN Folder"){
           steps {
           checkout([$class: 'SubversionSCM', additionalCredentials: [], excludedCommitMessages: '', excludedRegions: '', excludedRevprop: '', excludedUsers: '', filterChangelog: false, ignoreDirPropChanges: false, includedRegions: '', locations: [[cancelProcessOnExternalsFail: true, credentialsId: '', depthOption: 'infinity', ignoreExternalsOption: true, local: 'folder/styles', remote: 'http://svn.apache.org/repos/asf/xml/stylebook/trunk/rstiiiles']], quietOperation: true, workspaceUpdater: [$class: 'UpdateUpdater']]) }
           }
           }
          }
          {quote}
           
          New: Checking out of a wrong SVN URI throws and svn exception but the stage finishes "Success" the first time the pipeline is built. Next build, the exception is thrown again and now the stage finishes "Failure". Next build, again the exception is thrown but now the stage finishes "Success" ... next time "Failure"... and so on and so forth.

          To reproduce the bug, try the following pipeline and build it several times. The Repo URI has an deliberate error on the last folder, so it should fail allways:

          ''''
          pipeline {
           agent any
           stages {

          stage("Checkout SVN Folder"){
           steps {
           checkout([$class: 'SubversionSCM', additionalCredentials: [], excludedCommitMessages: '', excludedRegions: '', excludedRevprop: '', excludedUsers: '', filterChangelog: false, ignoreDirPropChanges: false, includedRegions: '', locations: [[cancelProcessOnExternalsFail: true, credentialsId: '', depthOption: 'infinity', ignoreExternalsOption: true, local: 'folder/styles', remote: 'http://svn.apache.org/repos/asf/xml/stylebook/trunk/rstiiiles']], quietOperation: true, workspaceUpdater: [$class: 'UpdateUpdater']]) }
           }
           }
          }
          ''''

            Unassigned Unassigned
            jjcanada Joaquín Cañadas
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: