[JIRA] (JENKINS-41197) [Pipeline] Pipeline step to exit the build immediately as a success
Title: Message Title Jesse Glick commented on JENKINS-41197 Re: [Pipeline] Pipeline step to exit the build immediately as a success Yeah, in general you may need to throw and catch something. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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-41197) [Pipeline] Pipeline step to exit the build immediately as a success
Title: Message Title Sean Sutherland commented on JENKINS-41197 Re: [Pipeline] Pipeline step to exit the build immediately as a success Jesse Glickreturn only gets out of the current closure, unless you meant I have to be outside of any pipeline step block node { withEnv(["a=b"]) { return } println "endenv" } println "endnode" this will print out both "endenv" and "endnode" Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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-41197) [Pipeline] Pipeline step to exit the build immediately as a success
Title: Message Title Jesse Glick resolved as Duplicate For now, assuming you are inside the main script body: return Jenkins / JENKINS-41197 [Pipeline] Pipeline step to exit the build immediately as a success Change By: Jesse Glick Status: Open Resolved Resolution: Duplicate Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
[JIRA] (JENKINS-41197) [Pipeline] Pipeline step to exit the build immediately as a success
Title: Message Title Sean Sutherland created an issue Jenkins / JENKINS-41197 [Pipeline] Pipeline step to exit the build immediately as a success Issue Type: New Feature Assignee: Unassigned Components: workflow-basic-steps-plugin Created: 2017/Jan/19 2:01 AM Priority: Minor Reporter: Sean Sutherland It would be convenient if there was a pipeline step that would exit the run immediately, but not have it be necessarily be a failure. This would be useful in situations where a run determines it no longer has work to do, and so it should end immediately as success (or whatever the current result state is). If we have multiple such decision points in a build, doing this with conditionals gets incredibly messy quite quickly. Add Comment