Is there any method or plugins available to retrieve deleted Jenkins job?
I have mistakenly deleted one job from Jenkins. So please give a suggestion to undo the delete.
Backup plugin allows archiving and restoring your Jenkins (and Hudson) home directory. This plugin is searching for a new maintainer! Unfortunately, the current maintainer has no more time to work on this plugin, but there are still some important issues to fix.
Currently in order to enable or disable a job, a user must have Job Configure permissions in the Matrix-based security configuration. We would like to be able to manage the enable / disable job permission independently from the job configure permission.
In fact you have just to use this url to reactivate your deleted job :
http://[url_of_jenkins]/jobConfigHistory/?filter=deleted
You just need to have this plugin installed beforehand: https://wiki.jenkins.io/display/JENKINS/JobConfigHistory+Plugin
It is not possible unless you somehow restore files from your master operating system. In future you can use plugin: https://wiki.jenkins-ci.org/display/JENKINS/JobConfigHistory+Plugin. This plugin saves configuration files for deleted jobs (but not build history).
Job configs are stored on disk under $JENKINS_HOME/jobs
, so if you have a backup of that directory, then you can restore the job.
Otherwise, there's no "recycle bin" for deleted jobs in Jenkins.
In future, if you want to remove a rarely-used job from Jenkins, but there's a small chance that you might want to use it in the future, you can archive the job using the Shelve Project plugin.
Download Plugin Job Config History
Download steps:- Manage Jenkins -> Manage Plugin -> Available -> JobConfigHistory Download and install
After Installation step:- Jenkins -> Job Config History -> Show deleted jobs only and restore the jobs
Peace...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With