jenkins integration multibranch pipeline - jgitver/jgitver-maven-plugin GitHub Wiki
Prerequisites
Considering you have a working Jenkins environment correctly setup with:
- maven > 3.3.x
- Folders, Git & Pipeline plugins installed (with their respective dependencies)
Multibranch pipeline for jgitver
Then you can create on your jenkins instance a multibranch pipeline job that will automatically make use of jgitver
- Multibranch pipeline job creation
- Set git source to demo project: https://github.com/jgitver/demo-ci-jgitver-maven-plugin
!!! WARNING !!! set the additional behavior as shown so that branches are checkout instead of SHA1 git commitID
- set job definition by Jenkinsfile and save
- jenkins indexes existing branches
- you're done
Advantages/drawbacks
:+1:
- easy to setup
- build every branch
:-1:
- does not build PR
- tags are not built automatically