[JIRA] (JENKINS-49121) Ability to skip stages and preserve build history

2 views
Skip to first unread message

jgrant216@gmail.com (JIRA)

unread,
Apr 11, 2018, 10:00:03 AM4/11/18
to jenkinsc...@googlegroups.com
Jeff G commented on Improvement JENKINS-49121
 
Re: Ability to skip stages and preserve build history

Using declarative pipeline, we have when expressions on the stages to skip certain stages (e.g. publishing artifacts when it is a pull request build).  The stage still appears in the stage view but is gray.  This might work for you if you use declarative pipeline.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

r.fuereder@xortex.com (JIRA)

unread,
May 23, 2018, 7:37:03 AM5/23/18
to jenkinsc...@googlegroups.com

For scripted pipelines there is a non-official/non-public-API workaround: please see JENKINS-47286 (and https://github.com/comquent/imperative-when)

It would be really great if that would become a public API (or some public API call that for now calls that non-public method in the meantime)...

jsoref+jenkins@gmail.com (JIRA)

unread,
Sep 17, 2019, 11:30:04 AM9/17/19
to jenkinsc...@googlegroups.com
Josh Soref updated an issue
 
Jenkins / Improvement JENKINS-49121
Change By: Josh Soref
It would be nice, when you can skip single stages in a pipeline withut loosing without losing the build history in the visualization.

At the moment I have two choices:
* Skip the complete stage: The whole build history in the visualization will be lost.
* Execute the stage but not the content: The build history is preserved, but the stage color will be the same as the rest of the stage. It should be clear, that the stage content wasn't executed. Maybe there could be a step to set the stage status and so change the color of the stage (just an idea).
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages