I've played around with Circleci and one thing that I really like is that they allow you to select a branch of a project and then view all the builds that've occurred in that branch. I'd love to implement this on our Jenkins server. Is there a configuration or plugin that does that?
Here's a quick mock-up of what I'm talking about:
MyProject:
- master
- branch1
-> build1
-> build2
-> build3
-> ...
- branch2
You can accomplish most of what you want with Jenkins. The Git Plugin does allow you to have one build that will build all (or some) branches of a repository (or multiple repositories). You can just leave the Branch Specifier field blank in the Git Plugin configuration to build all branches or you can specify a pattern like "*/feature/**" which would build all branches matching the pattern.
Then install the Build Name Setter Plugin and then in your build configuration under Build Environment check the box next to "Set Build Name" and use #${BUILD_NUMBER}: ${GIT_REVISION,length=8} (${GIT_BRANCH})
as your build name.
This will result in your build history looking something like this:
#5: 2743f83d (master)
#4: d0b4eada (feature/featureB)
#3: 777e92c7 (feature/featureA)
#2: 15b6d92b (master)
#1: 6b625f7f (master)
It's not hierarchical like in your mock-up but pretty close to it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With