jenkins-job-builder-multibranch-pipeline
A plugin for jenkins-job-builder to support multibranch pipeline job generation.
Usage:
Plugin adds a new project-type multibranch-pipeline
and a job definition field multibranch-pipeline
.
There are two distinct job definitions.
Create a multibranch pipeline job loading pipeline script from SCM.
- job:
name: example-scm-script
project-type: multibranch-pipeline
multibranch-pipeline:
source: # normal scm definitions
- git:
remote: '[email protected]:github-username/repository-name.git'
credentials-id: 'credentialsId'
includes: 'develop release/* feature/*'
excludes: 'test/*'
ignore-on-push-notifications: false
Definition type is chosen automatically by detecting presence of "source" field.