Backing up and restoring Jenkins backups

I am trying to find a way to backup and restore jenkins so that we can automatically provide new jenkins.

I cannot find a way to backup + restore / path / to / jenkins / plugins without including binaries. We would like the backup to be in xml format, like everything else in jenkins. I suggested that we can somehow backup the XML files, and jenkins will be able to recover the plugin binaries if they are missing, since it has access to maven.

I would prefer to avoid using configuration management tools to install plugins, since then I have to manage the versions of the plugins in a way that seems too manageable. I am happy to simply back up what is there and restore it to another location when necessary. Developers should be able to install plugins without me or a puppet.

Googling the problem is difficult because the "plugin" is used in many other contexts.

The link below says that it also manages the plugins, but I can't figure out how it is - maybe I missed something.

http://jenkins-ci.org/content/keeping-your-configuration-and-data-subversion

I transferred the idea of ​​using git, and it generally works, except that the plugins do not reappear magically on the new machine - only the default plugins are returned.

Can anyone tell me?

+6
source share
3 answers

The best idea I have come across today is to split the instance into the OS drive and the Jenkins drive mounted in / var / lib / jenkins. Use the snapshot function of your cloud provider to periodically back up your jenkins disk. I believe that for many organizations, Jenkins will always be a “scaly” server or pet that needs care and doesn’t get the big benefits of automation besides being used to support the OS.

+1

, API- Jenkins :

http://jenkins:8080/pluginManager/api/json?tree=plugins[shortName,version]&pretty=true.

( tree=plugins[*], API.)

Jenkins API .

API- pluginManager: http://jenkins:8080/pluginManager/api

+6

Jenkins Handy Backup. (/) . - .

0
source

All Articles