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-56312] Prevent adding splits with the wrong JDK #115

Merged
merged 4 commits into from
Feb 28, 2019

Conversation

raul-arabaolaza
Copy link
Contributor

JENKINS-56312 Only add splits with JDK field if testJDK is newer than the specified JDK version.

This is the first of two fixes to prevent failures related to the PCT adding jaxb plugin to builds outside of java 11, second one will make sure the added jaxb dependency uses the proper groupId instead of org.jenkins-ci.plugins

Copy link

@Wadeck Wadeck left a comment

Choose a reason for hiding this comment

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

🐝 empty PRs are the best!

@raul-arabaolaza
Copy link
Contributor Author

Ops, this is a mistake... fixing my PR now, is not going to be much bigger :P

@raul-arabaolaza
Copy link
Contributor Author

@Wadeck Now you can review, as promised not much bigger :)

Copy link

@Wadeck Wadeck left a comment

Choose a reason for hiding this comment

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

The code seems fine. What you call split is a detached plugin, right?

Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

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

JavaSpecificationVersion should be used for the version comparison here. Some test automation would not hurt as well, but we could deliver a quick fix as is

Copy link
Member

@alecharp alecharp left a comment

Choose a reason for hiding this comment

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

I agree with @oleg-nenashev about the Java version comparison.

Co-Authored-By: raul-arabaolaza <raul.arabaolaza@gmail.com>
@raul-arabaolaza
Copy link
Contributor Author

The code seems fine. What you call split is a detached plugin, right?

Exactly :)

Copy link
Member

@alecharp alecharp left a comment

Choose a reason for hiding this comment

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

LGTM

@oleg-nenashev oleg-nenashev merged commit 7d59f12 into jenkinsci:master Feb 28, 2019
@raul-arabaolaza raul-arabaolaza deleted the JENKINS-56312 branch February 28, 2019 11:10
batmat added a commit to batmat/plugin-compat-tester that referenced this pull request Apr 4, 2019
…-56312"

This reverts commit 7d59f12, reversing
changes made to 661782e.
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.

5 participants