Hudson/Jenkins Git build all branches

后端 未结 4 1880
面向向阳花
面向向阳花 2021-01-31 08:29

We have a lot of developers creating feature branches that I would like to build. Nightly we run a code quality tool that needs to run on every branch. I also would not like a s

4条回答
  •  南方客
    南方客 (楼主)
    2021-01-31 08:58

    In Git configuration there is a field 'Branch Specifier (blank for default): ' if you put there ** it will build all branches from all remotes.

    having that you can use an environment variable ${GIT_BRANCH} e.g. to set a title for the build using https://wiki.jenkins-ci.org/display/JENKINS/Build+Name+Setter+Plugin or for other purposes

提交回复
热议问题