How can I exchange jobs between 2 different Jenkins instances?

0 votes
I'm searching for a way to export/import jobs in Jenkins. Is it possible?
Jul 6, 2018 in Jenkins by Tyrion anex
• 8,280 points
24 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
java -jar jenkins-cli.jar -s http://server get-job myjob > myjob.xml
java -jar jenkins-cli.jar -s http://server create-job newmyjob < myjob.xml

create-job:

This creates a new job by reading stdin as a configuration XML file

get-job:

This dumps the job definition XML to stdout

answered Jul 6, 2018 by Sophie may
• 9,050 points

Related Questions In Jenkins

0 votes
1 answer

How can I create global macros and templates in jenkins job builder?

you can append the path to the ...READ MORE

answered Apr 2, 2018 in Jenkins by ajs3033
• 7,000 points
192 views
0 votes
1 answer

How Can I measure Jenkins Build Performance?

If you go to the Jenkins page ...READ MORE

answered Jul 16, 2018 in Jenkins by Kalgi
• 2,620 points
28 views
0 votes
1 answer

How can I point Jenkins to another .jenkins home directory?

I think this can help you out. Set ...READ MORE

answered Jul 19, 2018 in Jenkins by Kalgi
• 2,620 points
76 views
0 votes
2 answers

How can I make Jenkins CI with Git trigger on pushes to master?

Generic webhook trigger can be useful When configured ...READ MORE

answered Aug 13, 2018 in Jenkins by lina
• 8,100 points
54 views
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer

How to start Jenkins on a different port rather than 8080?

This is simple, use the following command: java ...READ MORE

answered Jul 4, 2018 in Jenkins by Sophie may
• 9,050 points
793 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.