Search code examples
jenkinsjenkins-plugins

What is the best way to archive/restore selected jenkins job


I was wondering that what is the best way to archive your unused job.Is there any plugin which allows us to archive selected Jenkins jobs and restore them later if we feel their requirement. For now i am copying the job folder and archiving the same after removing job logs. and for restoration i am restoring this directory back to jobs directory in Jenkins.


Solution

  • The Shelve Project plugin does exactly this.

    From the wiki page:

    This plugin lets you "shelve" projects so that they can easily be resurrected. When you shelve a project, it'll disappear from the list of projects [...] instead of getting deleted, the data is archived into a zip file and stored on the server [...] This allows the administrator to resurrect it later.