staticdev
staticdev

Reputation: 3060

How to convert Jenkins Pipeline into Multibranch Pipeline?

I have lots of Pipeline items in my Jenkins. I want to convert them into Multibranch Pipeline. Is it possible without deleting the Pipeline and creating a new Multibranch Pipeline? How?

Upvotes: 4

Views: 3742

Answers (1)

Rich Duncan
Rich Duncan

Reputation: 1923

Assuming your pipeline is in a Jenkinsfile, there isn't much to change. You can assume that when the pipeline runs in a multi-branch project that the code is already (implicitly) checked out in your workspace. The biggest difference is that you can't assume that your MBP is running on a specific branch. It can, of course, check which branch it is running on and behave accordingly.

Upvotes: 3

Related Questions