Multibranch pipeline
The Multibranch pipeline is the next step from the regular pipeline. It is pretty much the same, except it can run your script on every branch that has it. Any new branches are automatically scanned and build. Add a new item in Jenkins and pick the Multibranch Pipeline project type. The configuration requires you to specify your Git repository, but this time, you cannot specify a specific branch. The build configuration mode is set to by Jenkinsfile which, in this case, means your Jenkinsfile from source control. We can leave all the other settings for now. Save your configuration and you will be taken to the Scan Multibranch Pipeline Log. You should see Jenkins checking your repository for branches and Jenkinsfiles: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access