jenkins 管理服务器_Jenkins服务器中的备份管理
jenkins 管理服务器
Jenkins服务器中的备份管理 (Backup Management in Jenkins Server)
It is a known fact that Jenkins always requires some disk space in order to execute the build jobs and archive the same. This is configured by using the JENKINS_HOME. This path can be configured whenever required.
众所周知的事实是,Jenkins总是需要一些磁盘空间才能执行构建作业并将其存档。 通过使用JENKINS_HOME进行配置。 可以在需要时配置此路径。
备份还原 (Backup and Restore)
In Jenkins, all the settings, build logs and archives of the artifacts are stored under the JENKINS_HOME directory. The easy way is to just keep this folder separately as a new back and whenever the same needs to be used, just copy it back.
在Jenkins中,工件的所有设置,构建日志和存档都存储在JENKINS_HOME目录下。 一种简单的方法是将该文件夹单独保留为新的文件夹,并在需要使用该文件夹时将其复制回来。
The build jobs created under this directory contains all the details of each and every individual jobs configured in the Jenkins install. Any job can be moved from one installation directory to another just by copying the jobs.
在此目录下创建的构建作业包含Jenkins安装中配置的每个作业的所有详细信息。 只需复制作业,就可以将任何作业从一个安装目录移动到另一个安装目录。
Also, Jenkins provides the feature of renaming an existing job on the fly. To reflect the applied changes, just click on the reload config from the user interface of the Jenkins.
此外,詹金斯(Jenkins)提供了动态重命名现有作业的功能。 要反映应用的更改,只需在Jenkins的用户界面上单击重新加载配置即可 。
归档未使用的作业 (Archiving unused Jobs)
Sometimes there may be some build jobs which remains unused for a longer time. In that case, there is an easy way to archive the same. Just navigate to the JENKINS_HOME directory and create an archive folder for the job which needs to be archived.
有时可能会有一些构建作业长时间不使用。 在这种情况下,有一种简单的方法可以将其存档。 只需导航到JENKINS_HOME目录并为需要存档的作业创建一个存档文件夹。
ThinBackup插件 (ThinBackup Plugin)
Since, Jenkins can be enormously extended by the usage of several plugins, there comes a plugin which can be used for the backup management in Jenkins - ThinBackup plugin. This plugin backs up the job specific configuration files.
由于可以通过使用多个插件极大地扩展Jenkins,因此在Jenkins中提供了一个可用于备份管理的插件-ThinBackup插件。 该插件备份作业特定的配置文件。
From the Jenkins home page, click on Manage Jenkins and in the next page click on Manage plugins.
在Jenkins主页上,单击Manage Jenkins ,然后在下一页中,单击Manage plugins 。
In the next page, under the Available plugins tab, search/look for ThinBackup plugin. Select the same and click on Install without restart button.
在下一页的“ 可用插件”选项卡下,搜索/查找ThinBackup插件。 选择相同的选项,然后单击“ 安装而无需重新启动”按钮。
Just restart the Jenkins to see the plugin installed successfully. From the home page, click on Manage Jenkins link and in the next page, from the list if can be found that the ThinBackup plugin installed. Just click on the same and the below page will be displayed.
只需重新启动Jenkins即可看到插件已成功安装。 在主页上,单击Manage Jenkins链接,然后在下一页中,从列表中单击(如果可以找到)安装了ThinBackup插件。 只需单击相同,将显示以下页面。
Click on Settings link to configure the backup options.
单击设置链接以配置备份选项。
Just provide the configuration details as required and save the settings.
只需提供所需的配置详细信息并保存设置即可。
jenkins 管理服务器