[英]Jenkins - Backup Configuration of Job
I want to backup configuration of job, I am using to do this ThinBackup plugin in version 1.7.4 . 我想备份job的配置,我正在使用1.7.4版中的这个ThinBackup插件。 And in every configuration of the job, there is something like Promote builds when..
, how to backup this? 并且在作业的每个配置中,都有Promote builds when..
,如何备份此内容?
I ran into same issue and found this is an open bug . 我遇到了同样的问题,发现这是一个打开的错误 。 Looks to have a fix but a new version of the plugin hasn't been released. 看起来已修复,但尚未发布该插件的新版本。
A workaround which seems to work OK so far, is to separately backup the config.xml
files under the JENKINS_HOME/jobs/
. 到目前为止,似乎可行的一种解决方法是单独备份JENKINS_HOME/jobs/
下的config.xml
文件。 On Linux I ran the below from the Jenkins home directory to create this additional backup: 在Linux上,我从Jenkins主目录运行以下命令以创建此附加备份:
$ find jobs -name config.xml -exec tar -rzvf /tmp/config.xml-BACKUP.tgz {} \;
So I'm still using ThinBackup to get all the other bits but after restoring its backup: 所以我仍在使用ThinBackup来获取所有其他位,但在还原其备份之后:
tar -xzf /tmp/config.xml-BACKUP.tgz
I then restored the jobs config.xml
backup and restarted Jenkins. 然后,我恢复了作业config.xml
备份并重新启动了Jenkins。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.