Create a Jenkins seed job which will create a Pipeline job for each Jenkinsfile within a repository.
- Create a
Freestyle project
job - Within the
Build
section of the job, selectProcess Job DSLs
- Select
Use the pipeline DSL script
and copy theseed-job.groovy
code Save
andBuild with Parameters
A Folder called TEST
will be created.
The path to a Jenkinsfile is specified in the Jobs
section of the seed-job.groovy
file.
Three jobs are created within the folder, pointing to the Jenkinsfile
defined in the Script Path
of the job Pipeline.
Each Job allows for the Branch
parameter to be defined, The default branch is Master
. Change to test-branch-parameter
to test a job against a different branch.