versioning Jenkins config
Get your /var/lib/jenkins into a REPOSITORY
Don't forget to ignore the contents of each job's workspace directory
cd ~
git clone REPOSITORY
sudo rm -rf /var/lib/jenkins
sudo mv REPOSITORY /var/lib/jenkins
sudo chown -R jenkins /var/lib/jenkins/
sudo /etc/init.d/jenkins restart
Written by Goncalo Pereira
Related protips
1 Response
Or use this plugin.
https://wiki.jenkins-ci.org/display/JENKINS/JobConfigHistory+Plugin
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Automation
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#