Skip to content

Instantly share code, notes, and snippets.

@vikasshri
vikasshri / jenkins_copying_configuration.sh
Created Oct 11, 2019 — forked from mriddle/jenkins_copying_configuration.sh
Moving Jenkins server configuration from one server to another
View jenkins_copying_configuration.sh
ORIGINAL_JENKINS_SERVER=
ORIGINAL_SERVER_USER=
NEW_JENKINS_SERVER=
NEW_SERVER_USER=
# ON THE ORIGINAL JENKINS SERVER
ssh $ORIGINAL_SERVER_USER@$ORIGINAL_JENKINS_SERVER
cd /var/lib/jenkins/
for i in `ls jobs`; do echo "jobs/$i/config.xml";done > config.totar