简体   繁体   中英

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?

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..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM