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-58308] Add check for plugin and Jenkins version compatibility #65

Merged
merged 2 commits into from
Aug 8, 2019

Conversation

stopalopa
Copy link
Contributor

Should users actually be prevented from downloading plugins if there's a version incompatibility or should this just be a warning?

https://issues.jenkins-ci.org/browse/JENKINS-58308

@stopalopa stopalopa requested a review from a team August 8, 2019 19:08
for (Plugin p : pluginsToBeDownloaded) {
if (p.getJenkinsVersion() != null) {
if (p.getJenkinsVersion().compareTo(jenkinsVersion) > 0) {
System.out.println(
Copy link
Member

Choose a reason for hiding this comment

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

I would either fail or not add the check I think, how likely is that people would see this is in the logs?

newer jenkins core normally means newer apis are consumed so it wouldn't be safe to proceed anyway?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why did you first say you might not add the check at all?

@timja
Copy link
Member

timja commented Aug 8, 2019 via email

@stopalopa stopalopa merged commit d776c94 into jenkinsci:master Aug 8, 2019
@stopalopa stopalopa deleted the check-jenkins-version branch August 8, 2019 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants