Reputation: 1240
At the moment, we are generating Jenkins jobs using the Job DSL plugin. Typically, we have the following jobs per project:
Am I right that there can be only one Jenkins file in the project's repository? How could I map our requirements to the new Jenkins pipeline?
I'm asking because we're going to install version 2 of Jenkins, and I'm not sure whether we should abandon our Jenkins job generation and use Jenkins files.
Upvotes: 1
Views: 857
Reputation: 37630
There are a couple of options, which might help you to migrate over to Jenkins pipelines. But you don't have to, especially not all at once.
buildOurThing
function.build
step. So you could model your new pipeline around existing jobs.Jenkins pipeline is really worth using, but maybe don't force you to an immediate switch. If JobDSL works for you, keep it. If you have new jobs (pipelines) to create, get familiar with pipelines.
Upvotes: 1