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