简体   繁体   English

独立的jenkins.war与配置持久性?

[英]Standalone jenkins.war vs configuration persistence?

Due to limited rights I can only use Jenkins by running 由于权限有限,我只能通过运行来使用Jenkins

java -jar jenkins.war

This deploys Jenkins to a built in Jetty server. 这会将Jenkins部署到内置的Jetty服务器。

However when I restart Jenkins, the configuration will eventually get lost. 但是,当我重新启动Jenkins时,配置最终将丢失。 Is there any way to keep that data persistent without deploying Jenkins to a regular application server? 有什么方法可以在不将Jenkins部署到常规应用程序服务器的情况下保持数据的持久性?

Note: I do not have root privileges. 注意:我没有root特权。

By default Jenkins installation stores all the logs, config details, build artifacts under ~/.jenkins directory. 默认情况下,Jenkins安装会将所有日志,配置详细信息,构建工件存储在~/.jenkins目录下。 So you can archive this directory and replace it when you restart the service. 因此,您可以存档此目录并在重新启动服务时替换它。

In case if you have customized the home directory then archive the customized home directory. 如果您已自定义主目录,则存档自定义的主目录。

This link may help you to find the home directory. 此链接可以帮助您找到主目录。 https://wiki.jenkins-ci.org/display/JENKINS/Administering+Jenkins https://wiki.jenkins-ci.org/display/JENKINS/Administering+Jenkins

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM