[JIRA] (JENKINS-49183) Retry in Declarative options passes stage but causes false fail in pipeline
Title: Message Title Liam Newman closed an issue as Duplicate Bulk closing resolved issues. Jenkins / JENKINS-49183 Retry in Declarative options passes stage but causes false fail in pipeline Change By: Liam Newman Status: Resolved Closed Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.188020.1516956301000.17625.1571801068438%40Atlassian.JIRA.
[JIRA] (JENKINS-49183) Retry in Declarative options passes stage but causes false fail in pipeline
Title: Message Title Devin Nusbaum resolved as Duplicate Jenkins / JENKINS-49183 Retry in Declarative options passes stage but causes false fail in pipeline Change By: Devin Nusbaum Status: Open Resolved Resolution: Duplicate Released As: pipeline-model-definition 1.3.8 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.188020.1516956301000.25180.1560263708721%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49183) Retry in Declarative options passes stage but causes false fail in pipeline
Title: Message Title Devin Nusbaum commented on JENKINS-49183 Re: Retry in Declarative options passes stage but causes false fail in pipeline I think this is a dupe of JENKINS-46354, which was fixed in Pipeline Declarative Plugin version 1.3.8. Here is the Pipeline I used to verify that the issue was fixed: pipeline { agent any stages { stage("test") { options { retry(3) } steps { sh 'if (( $RANDOM % 2 )); then exit 0; else exit 1; fi;' } } } } Here is the log output from a build with one retry: Started by user unknown or anonymous Running in Durability level: MAX_SURVIVABILITY [Pipeline] Start of Pipeline [Pipeline] node Running on Jenkins in /Users/dnusbaum/Projects/pipeline-model-definition-plugin/pipeline-model-definition/work/workspace/retry [Pipeline] { [Pipeline] stage [Pipeline] { (test) [Pipeline] retry [Pipeline] { [Pipeline] sh + (( 5334 % 2 )) + exit 1 [Pipeline] } ERROR: script returned exit code 1 Retrying [Pipeline] { [Pipeline] sh + (( 24899 % 2 )) + exit 0 [Pipeline] } [Pipeline] // retry [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: SUCCESS I also tested with the options at the top level rather than in the stage, and got the same result. I am going to close this as a dupe of JENKINS-46354, feel free to reopen if you are still seeing the issue. If you do reopen the ticket, please include a simple Pipeline that reproduces the problem so we can understand how it differs from JENKINS-46354. Add Comment
[JIRA] (JENKINS-49183) Retry in Declarative options passes stage but causes false fail in pipeline
Title: Message Title Gina Guerrero commented on JENKINS-49183 Re: Retry in Declarative options passes stage but causes false fail in pipeline Joachim Sailer Thanks for the workaround! I ended up using it; just the downside is if a user cancels a build that's on a step wrapped with a retry, it stills keep retrying. Lesser of the two evils, I guess. 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-49183) Retry in Declarative options passes stage but causes false fail in pipeline
Title: Message Title Joachim Sailer commented on JENKINS-49183 Re: Retry in Declarative options passes stage but causes false fail in pipeline As a workaround I use the retry step instead of retry option. That works for me... stage('name') { steps { retry(3) { ... } } } 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-49183) Retry in Declarative options passes stage but causes false fail in pipeline
Title: Message Title Peter Žeby edited a comment on JENKINS-49183 Re: Retry in Declarative options passes stage but causes false fail in pipeline Have same problem. Running stage 3 times with retry option, but it always keeps FAILURE status at the end, even if second/third time the build (stage) is successful. I wanted to reset `currentBuild.result` as workaround on start of stage, but it can not be changed from FAILURE to SUCCESS based on my tests, only from SUCCESS to FAILURE. Are Is there any solution? 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-49183) Retry in Declarative options passes stage but causes false fail in pipeline
Title: Message Title Christopher Kush (Monotype) commented on JENKINS-49183 Re: Retry in Declarative options passes stage but causes false fail in pipeline Yeah, irritating. Whole point of retry is that one of my stages is not reliable. 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-49183) Retry in Declarative options passes stage but causes false fail in pipeline
Title: Message Title Prince Raj Kumar commented on JENKINS-49183 Re: Retry in Declarative options passes stage but causes false fail in pipeline Andrew Bayer, Is there any ETA, to fix this issue? I am also getting the same issue. Can you please fix this issue as soon as possible, It will be good for me. Thanks in advance! I am looking forward to your reply. Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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-49183) Retry in Declarative options passes stage but causes false fail in pipeline
Title: Message Title Oleg Nenashev commented on JENKINS-49183 Re: Retry in Declarative options passes stage but causes false fail in pipeline Sam Van Oort sorry for messing up the ticket. It was actually not assigned to anybody, so I have thought I am doing triaging. Thanks for the update Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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-49183) Retry in Declarative options passes stage but causes false fail in pipeline
Title: Message Title Sam Van Oort commented on JENKINS-49183 Re: Retry in Declarative options passes stage but causes false fail in pipeline Oleg Nenashev I'm unclear why you reassigned this, given that Andrew had already self-assigned this to himself and marked it as a Declarative issue, suggesting he thinks it's an issue with Declarative. That's what my gut says too – likely Declarative is doing something that creates odd status codings here, probably some small bug is resulting in the retry marking the build a failure. Stage View is only providing a visualization of that data, they just provided a screenshot that shows this, and Blue Ocean matches that. Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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-49183) Retry in Declarative options passes stage but causes false fail in pipeline
Title: Message Title Sam Van Oort assigned an issue to Andrew Bayer Jenkins / JENKINS-49183 Retry in Declarative options passes stage but causes false fail in pipeline Change By: Sam Van Oort Assignee: Sam Van Oort Andrew Bayer Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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-49183) Retry in Declarative options passes stage but causes false fail in pipeline
Title: Message Title Sam Van Oort updated an issue Jenkins / JENKINS-49183 Retry in Declarative options passes stage but causes false fail in pipeline Change By: Sam Van Oort Component/s: pipeline-model-definition-plugin Component/s: pipeline-stage-view-plugin Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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-49183) Retry in Declarative options passes stage but causes false fail in pipeline
Title: Message Title Jonh Wendell commented on JENKINS-49183 Re: Retry in Declarative options passes stage but causes false fail in pipeline I'm also suffering from this issue as you can see in the screenshot above. Even open ocean recognizes the job failed when in fact only 1 step within the retry clause failed, at the first time. Second time it worked fine. The state of the build is failed - in all jenkins views - when in fact it succeeded. I'm using Jenkins 2.89.4 + Pipeline declarative 1.2.7 + Build Pipeline plugin 1.5.8. Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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-49183) Retry in Declarative options passes stage but causes false fail in pipeline
Title: Message Title Jonh Wendell updated an issue Jenkins / JENKINS-49183 Retry in Declarative options passes stage but causes false fail in pipeline Change By: Jonh Wendell Attachment: Screenshot from 2018-04-24 21-32-39.png Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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-49183) Retry in Declarative options passes stage but causes false fail in pipeline
Title: Message Title Oleg Nenashev commented on JENKINS-49183 Re: Retry in Declarative options passes stage but causes false fail in pipeline According to the screenshot, it is an issue in Pipeline Stage view Plugin. CC Sam Van Oort Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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-49183) Retry in Declarative options passes stage but causes false fail in pipeline
Title: Message Title Oleg Nenashev assigned an issue to Sam Van Oort Jenkins / JENKINS-49183 Retry in Declarative options passes stage but causes false fail in pipeline Change By: Oleg Nenashev Assignee: Sam Van Oort Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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-49183) Retry in Declarative options passes stage but causes false fail in pipeline
Title: Message Title Oleg Nenashev updated an issue Jenkins / JENKINS-49183 Retry in Declarative options passes stage but causes false fail in pipeline Change By: Oleg Nenashev Component/s: pipeline-stage-view-plugin Component/s: pipeline-model-definition-plugin Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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-49183) Retry in Declarative options passes stage but causes false fail in pipeline
Title: Message Title Prince Raj Kumar updated an issue Jenkins / JENKINS-49183 Retry in Declarative options passes stage but causes false fail in pipeline Change By: Prince Raj Kumar Priority: Minor Major Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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.