Skip to content

jenkins integration multibranch pipeline

Matthieu Brouillard edited this page Jan 6, 2017 · 1 revision

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

👍

  • easy to setup
  • build every branch

👎

  • does not build PR
  • tags are not built automatically