max
max

Reputation: 49

Jenkins multibranch pipeline script

For reasons, my project requires a Jenkins multibranch pipeline (or similar) where the pipeline definition has to live externally to the SCM, either as a Jenkinsfile or pipeline script. It just needs to be able to scan all branches and follow a predetermined set of steps.

Is this possible?

Upvotes: 1

Views: 538

Answers (1)

Hansika Wanniarachchi
Hansika Wanniarachchi

Reputation: 137

In multi-branch pipeline You should have different Jenkins files in each and every branch to execute the given steps in stages of pipeline. Within the multi-branch pipeline it automatically scan all the branches in your repository and find-out all separated jenkins files using Scan Repository Now option. further under the Scan Repository Log, you will able to find out the log details of every branches..

Upvotes: 0

Related Questions