I have installed Pipeline Plugin
which used to be called as Workflow Plugin
earlier.
https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Plugin
I want to know how can i use Job Dsl to create and configure a job which is of type Pipeline
Jenkinsjenkins-job-dsljenkins-pipelinejenkins-pluginsjenkins-workflow
I have installed Pipeline Plugin
which used to be called as Workflow Plugin
earlier.
https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Plugin
I want to know how can i use Job Dsl to create and configure a job which is of type Pipeline
Best Answer
You should use
pipelineJob
:You can define the logic by inlining it:
or load it from a file located in workspace:
Example:
Seed-job file structure:
then
productJob.groovy
content: