Reputation: 1803
I am trying to combine nice branching handling of Workflow Multibranch with powerfull Job-Dsl plugin Job generation. So basically I want branch to regenerate it's jobs from script in repository and run the main one.
But I don't see a way to run Process Job DSLs
step from workflow script. May be there is a built in way to execute custom steps in Workflow, but I just can't find it.
Upvotes: 3
Views: 3053
Reputation: 672
It seems that the jobDSL method can be used in the pipeline.
Have a look into the Snippet Generator to generate some code :
Upvotes: 1
Reputation: 25451
Not quite sure where you are going with this, but perhaps what you really want is multibranch binding for Job DSL, or to manually iterate branches.
Alternately, with Workflow alone you can probably accomplish your goal, whatever that is.
Upvotes: 1
Reputation: 1106
You could create a separate job that processes the job-dsl, and then call it with the proper parameters from the workflow via a "build job: xxx" step.
Upvotes: 2