Re: Declarative Pipeline with variable number of stages

2017-12-18 Thread Andreas Røsdal
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 numb

Declarative Pipeline with variable number of stages

2017-12-17 Thread Andreas Røsdal
Hello, 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. Is this possible? Can I dynamically change the number of stages in a dynamic pipeline? Can I dynamically