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.
相关问题
- Why does recursive submodule update from github fa
- Extended message for commit via Visual Studio Code
- Jenkins - cmd is not recognized
- Emacs shell: save commit message
- Can I organize Git submodules in a flat hierarchy?
相关文章
- dotnet restore还原nuget包时无法加载 https://api.nuget.org/
- 请教Git如何克隆本地库?
- jenkins在window集群环境中如何部署自动化发布?
- jenkins + Publish over FTP 自动部署前端React项目
- jenkins自定打包部署React前端项目遇到的问题。
- Best way to manage docker containers with supervis
- Access BitBucket payload data in Jenkins pipeline
- GitHub:Enterprise post-receive hook
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
The ** for branch specifier will run against all branches AND all tags. If you just want branches, use a branch specifier of refs/heads/*
Old question but somewhat more fitting answer. The multi-branch plugin below allows you to create a build item type that fans out sub-projects with branches, syncing config automatically from top level to sub-projects
https://wiki.jenkins-ci.org/display/JENKINS/Multi-Branch+Project+Plugin
For a somewhat more involved approach, Seed plugin gives you a lot of flexibility defining sub-jobs
https://github.com/jenkinsci/seed-plugin/wiki
I had the same problem to be solved. Specifically, make a zip file of all branches and offer those as artifacts to be used in different test jobs.
In "Branches to build", put "**"
Then, Execute shell:
This reads the list of branches, checkouts each of them separately and allows to do stuff in each of them. The <<< command converts this output:
into checkout usable list: