Import Export Jobs Jenkins

In this tutorial, How to Import Export jobs, Jenkins. It is easy to import and export Jenkins job and plugin when you migrating Jenkins jobs to a new server. I use Butler CLI. Jenkins the essential for DevOps Roles.

To get butler package for your system Linux. Link butler download.

For Linux

chmod +x butler
mv butler /usr/local/bin/

To verify the Bulter

/usr/local/bin/butler help

Import Export Jobs Jenkins


To export Jenkins plugins

/usr/local/bin/butler plugins export  --server localhost:8080  --username admin  --password admin

Butler will dump a list of plugins installed to new file “plugins.txt”

To export Jenkins jobs

/usr/local/bin/butler jobs export  --server localhost:8080  --username admin  --password admin

A new directory “jobs” will be created with every job in Jenkins. Each job it owns configure file config.xml


To import Jenkins plugins

/usr/local/bin/butler plugins import  --server localhost:8080  --username admin  --password admin

To import Jenkins jobs

/usr/local/bin/butler jobs import  --server localhost:8080  --username admin --password admin

Another method, you can refer to from StackOverflow


Thought the article, you can use “Import Export Jobs Jenkins” as above. I hope will this your helpful. Thank you for reading the DevopsRoles page!

About HuuPV

My name is Huu. I love technology and especially Devops Skill such as Docker, vagrant, git so forth. I likes open-sources. so I created site to share the knowledge that I have learned. My Job: IT system administrator. Hobbies: summoners war game, gossip.
View all posts by HuuPV →

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.