6

I have tons of existing Freestyle Jenkins jobs in my old Jenkins Instance and now I would like to migrate them to New Jenkins 2.0 pipeline jobs using a Jenkins file.

I am following this page to create a Jenkins file: https://jenkins.io/doc/book/pipeline/jenkinsfile/

Can someone please suggest me if there is any easy way (or) plugin i can use to convert these existing job's to pipeline view.

daspilker
  • 8,154
  • 1
  • 35
  • 49
Harsha
  • 61
  • 1
  • 3

2 Answers2

3

I haven't tried the plugin but while searching for same i came across this post: https://jenkins.io/blog/2017/12/15/auto-convert-freestyle-jenkins-jobs-to-coded-pipeline/

Maybe this can help. Will update more after actually giving it a ago. You can go through and try by yourself as well.

Hanendra
  • 31
  • 2
2

don't think there is an automatic tool to convert jobs.

We created all new jobs with Jenkins DSL plugin

for the Jenkinsfile - we created some good examples of our basic flows and each team convert the relevant jobs.

Mor Lajb
  • 2,546
  • 1
  • 15
  • 28