On Sunday, December 17, 2017 at 1:39:22 PM UTC+1, Christopher Orr wrote: > > Hi there, > > On Sun, 17 Dec 2017, at 13:21, Andreas Røsdal wrote: > > I would like to implement a declarative pipeline in Jenkin, using only > one Jenkinsfile, > > but have variable number of stages depending upon which branch of the > project is being built. > > You can conditionally run certain stages, using the `when` directive > and the `branch` conditions: > https://jenkins.io/doc/book/pipeline/syntax/#when > https://youtu.be/YWb5Is6VwPg >
When I exclude certain stages from the pipeline using the 'when' directive, they are still included in the Jenkins pipeline stage view as having run successfully for some milliseconds, even though they where excluded by 'when'. This is the view: https://wiki.jenkins.io/display/JENKINS/Pipeline+Stage+View+Plugin Is seems like a bug in the Jenkins stage view plugin, that stages which are excluded by 'when' are still shown as having completed successfully? Thanks for the reply! Regards, Andreas -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e0c24788-5813-4dd3-b664-5add7caf2562%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.