Reputation: 135
I have a trouble about running initial pipeline from Job Dsl. Is there way to perform/run initial pipeline automatically after it is created. I am creating dynamic pipeline for each feature branch. So In each time when the feature pipeline created, I want to run it automatically after pipeline and its job creation completed.I don't want to perform pipeline manually from Jenkins. Because it is too tricky to perform each created feature pipeline.
Upvotes: 2
Views: 873
Reputation: 8194
You can use queue
to schedule a build of a job. See https://github.com/jenkinsci/job-dsl-plugin/wiki/Job-DSL-Commands#queue
pipelineJob('example') {
// ...
}
queue('example')
Upvotes: 3