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

[FIX JENKINS-27694] Update dynamically loaded plugins' Downloadables #1754

Merged
merged 1 commit into from Jul 5, 2015

Conversation

daniel-beck
Copy link
Member

Fixes JENKINS-27694.

@reviewbybees

@ghost
Copy link

ghost commented Jul 2, 2015

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to find out more about our process please see this note

@jtnord
Copy link
Member

jtnord commented Jul 3, 2015

🐝

LOGGER.log(Level.FINE, "Updating metadata for " + d.getId());
try {
d.updateNow();
} catch (IOException e) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to our previous experience, I would recommend to start catching other Throwables when we call extension points

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oleg-nenashev The caller ExtensionListListener already handles these, so in the worst case not all necessary Downloadables are refreshed. Since I gate this with a check to only refresh those without data, it should only happen for a Downloadable in a plugin with 2+ Downloadables that is broken anyway.

@oleg-nenashev
Copy link
Member

@daniel-beck , the comment above is up to you. I think there's a risk of Runtime Exceptions in extensions

@recena
Copy link
Contributor

recena commented Jul 5, 2015

🐝

daniel-beck added a commit that referenced this pull request Jul 5, 2015
[FIX JENKINS-27694] Update dynamically loaded plugins' Downloadables
@daniel-beck daniel-beck merged commit 038edc1 into jenkinsci:master Jul 5, 2015
daniel-beck added a commit that referenced this pull request Jul 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants