-
Bug
-
Resolution: Unresolved
-
Major
-
Jenkins 2.249.x both installed as package on Ubuntu 18.04 and running as docker container
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
}
}
}
''''
[JENKINS-64152] Pipeline svn checkout do not fails intermitently
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} |
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']]) } } } } }} |
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']]) }}}{{}}} {{ }}} {{ }}} |
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} |
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']]) } } } } '''' |