Is there a way how to convert Jenkins project into Pipeline?

17k Views Asked by At

I do have existing project which has a few steps and I would like to have exactly same thing with multibranch support. Multi branch project is looking good but I need to use Pipeline and create Jenkinsfile, but when it comes to Pipelines I do struggle to find good documentation and examples.

So an idea is that it would be really handy, if I can convert existing project into Pipeline because that would really help.

Is there a way how this can be done or do I have to write Jenkinsfile from scratch?

3

There are 3 best solutions below

2
On BEST ANSWER

I don't know a tool that converts existing project to pipeline project, so I guess you'd have to start from scratch.

The documentation is not great but there are plenty of resource to follow:

1
On

I haven't tried it, but I've seen that others have. Use this to translate your current project's config.xml: https://github.com/visualphoenix/jenkins-xml-to-jobdsl

0
On