Hudson / Jenkins Git构建所有分支 [英] Hudson/Jenkins Git build all branches
问题描述
我们有很多开发者创建我想要构建的功能分支。每晚我们运行一个需要在每个分支上运行的代码质量工具。我也不喜欢静态配置,因为分支数量每隔几周就会改变一次。
在Git配置中有一个字段'分支说明符(默认为空白):'
如果你把它放在那里**它会从所有的遥控器中建立所有的分支。
有了这个你可以使用环境变量$ {GIT_BRANCH}例如使用 https://wiki.jenkins-ci.org/设置版本的标题显示/ JENKINS / Build + Name + Setter +插件或用于其他用途
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 static configuration because the number of branches changes every few weeks.
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
这篇关于Hudson / Jenkins Git构建所有分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!