gpt4 book ai didi

jenkins - Jenkins 备份配置文件的最佳实践

转载 作者:行者123 更新时间:2023-12-01 03:23:50 26 4
gpt4 key购买 nike

我在远程 Debian 7.8 上使用 Jenkins。我想将 Debian 7.8 更新到 8.7。我尝试更新并且一切顺利,但是 Jenkins 坏了,无法启动服务。我尝试了一切,但可以找到任何解决方案。最后我使用了 purged 命令,它删除了以前的配置和构建。

现在我恢复了服务器并想再次更新,但我想要一个完整的 Jenkins 配置和构建备份,以便从上次运行的实例中恢复它。

尽可能简单地备份配置(更少的努力和问题)并配置然后合并备份文件的最佳实践是什么。

我必须备份哪些数据/配置文件?

最佳答案

Jenkins 使用的确切布局由 JENKINS_HOME directory 描述。

JENKINS_HOME
+- config.xml (jenkins root configuration)
+- *.xml (other site-wide configuration files)
+- userContent (files in this directory will be served under your http://server/userContent/)
+- fingerprints (stores fingerprint records)
+- plugins (stores plugins)
+- workspace (working directory for the version control system)
+- [JOBNAME] (sub directory for each job)
+- jobs
+- [JOBNAME] (sub directory for each job)
+- config.xml (job configuration file)
+- latest (symbolic link to the last successful build)
+- builds
+- [BUILD_ID] (for each build)
+- build.xml (build result summary)
+- log (log file)
+- changelog.xml (change log)
它带有一个简单的指令:

All the settings, build logs, artifact archives are stored under the JENKINS_HOME directory. Simply archive this directory to make a back up.

Back ups can be taken without stopping the server, but when you restore, please do stop the server.

关于jenkins - Jenkins 备份配置文件的最佳实践,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43145027/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com