How to Backup Jenkins using Jenkinsfile
问题 How To do Jenkins jobs configuration backup using Jenkinsfile without plugins? things to be backup : system configuration {jenkins} jobs configuration 回答1: We were not happy with the plugins backup solutions, so we have a freestyle shell step job run on master (usually a no-no, so only allow managed special task like backup to run there) with a simple tar cmd, one for system config (xmls, keys, etc), one for jobs (excluding logs 'n stuff). System backup In ${JENKINS_HOME} , you'll want to