Build only the Git branch that has been pushed to

前端 未结 6 657
时光说笑
时光说笑 2020-12-09 02:43

I have a Jenkins job to build the master branch of my GitHub repo. It triggers nicely when I push a commit to master, and I\'m very happy about it.

6条回答
  •  无人及你
    2020-12-09 03:30

    you can easily specify branch in job configuration:

    in section Source Code Management where you have already specified your git repository URL you have also an option to specify branches to build. Simply please a name of your branch instead of master (which is default value).

提交回复
热议问题