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

job creation

!!! WARNING !!! set the additional behavior as shown so that branches are checkout instead of SHA1 git commitID

git source of project

  • set job definition by Jenkinsfile and save

job definition

  • jenkins indexes existing branches

job definition

  • you're done

job definition

Advantages/drawbacks

:+1:

  • easy to setup
  • build every branch

:-1:

  • does not build PR
  • tags are not built automatically