[JIRA] (JENKINS-41943) DP should have an easy way to say don't run subsequent steps if result is set.

2 views
Skip to first unread message

jnord@cloudbees.com (JIRA)

unread,
Feb 10, 2017, 4:10:01 PM2/10/17
to jenkinsc...@googlegroups.com
James Nord updated an issue
 
Jenkins / Improvement JENKINS-41943
DP should have an easy way to say don't run subsequent steps if result is set.
Change By: James Nord
Summary: DP should have an easy way to say don ; ' t run subsequent steps if result is set.
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

jnord@cloudbees.com (JIRA)

unread,
Feb 10, 2017, 4:15:02 PM2/10/17
to jenkinsc...@googlegroups.com
James Nord updated an issue
If I have a pipeline with a lot of stages

* run unit tests
* run smoke tests
* run quick ATH
* run slow ATH
* deploy to staging
* run UAT
* run even more tests

If anything sets the build result to anything other than SUCCESS in one of the stages (e.g. unit test failures and junit plugin -> UNSTABLE) then I do not want to run the subsequent tests.

Currently I have to
remebmer remember to put the following on every stage - which is cumbersome and error prone.

{noformat}
when { expression { currentBuild.result == null } }
{noformat}

It would be useful if there was a config option like {{skipSubsequentStagesWhenNotSucessfull : true}} at the top level which could be overridden by a stage if needed (e.g. a final reporter stage...)

Obviously the configuration name above is bad - but just for example...

andrew.bayer@gmail.com (JIRA)

unread,
Feb 22, 2017, 4:20:04 PM2/22/17
to jenkinsc...@googlegroups.com
Andrew Bayer resolved as Duplicate
 

I think this is addressed by JENKINS-42039.

Change By: Andrew Bayer
Status: Open Resolved
Resolution: Duplicate

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:24:47 PM10/22/19
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Duplicate
 

Bulk closing resolved issues.

Change By: Liam Newman
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages