简体   繁体   中英

Jenkins: always checkout and build newest branch from remote repository

we have a remote git repository wherein from time to time a new branch gets created (numbered).

I want my Jenkins to periodically check whether there is a new branch available and if yes to checkout and build this branch automatically.

Can you give me a hint how to approach this goal since i am quite a newbie in Jenkins administration.

Thanks a lot!

Have a look at the following two plugins:

Both of them allows you to define a job which "duplicates" for each branch. The first uses pipelines which is the new "hip" way of defining jobs and the second uses regular free style job definition.

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