[JIRA] (JENKINS-46354) Retry in Declarative options skips retried stages due to earlier failure
Title: Message Title Bruno Campolo edited a comment on JENKINS-46354 Re: Retry in Declarative options skips retried stages due to earlier failure {code:java}import jenkins.model.*pipeline {agent any options { retry(3) }stages {stage('Stage1') {steps {echo "Starting Stage1"}}stage('Stage2') {steps {echo "Starting Stage2"error "This will cause the pipeline to retry"}}}post {always {echo 'This will always run'}success {echo 'This will run only if successful'}failure {echo 'This will run upon failure'}unstable {echo 'This will run only if the run was marked as unstable'}changed {echo 'This will run only if the state of the Pipeline has changed'}}}{code} Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-46354) Retry in Declarative options skips retried stages due to earlier failure
Title: Message Title Bruno Campolo commented on JENKINS-46354 Re: Retry in Declarative options skips retried stages due to earlier failure import jenkins.model.* pipeline { agent any options { retry(3) } stages { stage('Stage1') { steps { echo "Starting Stage1" } } stage('Stage2') { steps { echo "Starting Stage2" error "This will cause the pipeline to retry" } } } post { always { echo 'This will always run' } success { echo 'This will run only if successful' } failure { echo 'This will run upon failure' } unstable { echo 'This will run only if the run was marked as unstable' } changed { echo 'This will run only if the state of the Pipeline has changed' } } } Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-46354) Retry in Declarative options skips retried stages due to earlier failure
Title: Message Title Bruno Campolo updated an issue Jenkins / JENKINS-46354 Retry in Declarative options skips retried stages due to earlier failure Change By: Bruno Campolo Comment: {code:java}// code placeholder{code}import jenkins.model.*pipeline \{ agent any options { retry(3) } stages \{ stage('Stage1') { steps { echo "Starting Stage1" } } stage('Stage2') \{ steps { echo "Starting Stage2" error "This will cause the pipeline to retry" } } } post \{ always { echo 'This will always run' } success \{ echo 'This will run only if successful' } failure \{ echo 'This will run upon failure' } unstable \{ echo 'This will run only if the run was marked as unstable' } changed \{ echo 'This will run only if the state of the Pipeline has changed' } } } Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-46354) Retry in Declarative options skips retried stages due to earlier failure
Title: Message Title Bruno Campolo commented on JENKINS-46354 Re: Retry in Declarative options skips retried stages due to earlier failure // code placeholder import jenkins.model.*pipeline { agent any options { retry(3) } stages { stage('Stage1') { steps { echo "Starting Stage1" } } stage('Stage2') { steps { echo "Starting Stage2" error "This will cause the pipeline to retry" } } } post { always { echo 'This will always run' } success { echo 'This will run only if successful' } failure { echo 'This will run upon failure' } unstable { echo 'This will run only if the run was marked as unstable' } changed { echo 'This will run only if the state of the Pipeline has changed' } } } Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-46354) Retry in Declarative options skips retried stages due to earlier failure
Title: Message Title Bruno Campolo commented on JENKINS-46354 Re: Retry in Declarative options skips retried stages due to earlier failure Jesse Glick - I'm not sure what "to make sure the stage graph is consistent" means either, but the heart of this issue is that when adding the retry option to a declarative pipeline options block, after the first pass fails, it correctly starts back at the top of the pipeline, but then incorrectly skips every job "due to earlier failure(s)", which means options { retry(3) } in the declarative pipeline is unusable. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-46354) Retry in Declarative options skips retried stages due to earlier failure
Title: Message Title Bruno Campolo edited a comment on JENKINS-46354 Re: Retry in Declarative options skips retried stages due to earlier failure [~abayer] - can you provide an updated status on this issue? The priority is marked as Major and it has been open for over a year. The only PR looks like it was closed. This bug completely breaks the pipeline retry option for declarative pipelines. I've tried various workarounds including setting the currentBuild.result without success. Any help would be appreciated. [~jglick] Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-46354) Retry in Declarative options skips retried stages due to earlier failure
Title: Message Title Bruno Campolo commented on JENKINS-46354 Re: Retry in Declarative options skips retried stages due to earlier failure Andrew Bayer - can you provide an updated status on this issue? The priority is marked as Major and it has been open for over a year. The only PR looks like it was closed. This bug completely breaks the pipeline retry option for declarative pipelines. I've tried various workarounds including setting the currentBuild.result without success. Any help would be appreciated. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.