Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-25654] Do not show restore button if there are no configs available. #54

Merged

Conversation

Jochen-A-Fuerbacher
Copy link
Member

Hotfix for JENKINS-25654.

We can't restore a job when there's no stored config file available.
When a job gets deleted, we can't save a config file.
If a job is enabled and get's deleted, jenkins first deactivates the job and then deletes ist. So in this case we have a config file.
But if a job is deactivated and the job gets deleted, jenkins doesn't deactivate it (because it is already) and deletes it directly. So in the case when a job is deactivated, JobConfigHistory gets installed, no more configuration for this job get performed and the job gets deleted, we don't have any config file we could restore.

A workaround for this case is, that we don't show the restore button, when there's no config file available.

@Jochen-A-Fuerbacher Jochen-A-Fuerbacher merged commit 4d8f671 into jenkinsci:master Apr 4, 2016
@Jochen-A-Fuerbacher Jochen-A-Fuerbacher deleted the JENKINS-25654 branch July 14, 2017 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant