-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Test with Java 17 in addition to Java 11 and Java 8 #1249
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
Conversation
Jenkinsfile
Outdated
| configurations: [ | ||
| [platform: 'linux', jdk: '11'], | ||
| [platform: 'windows', jdk: '8'], | ||
| [platform: 'linux', jdk: '11', jenkins: '2.342'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean
| [platform: 'linux', jdk: '11', jenkins: '2.342'], | |
| [platform: 'linux', jdk: '17', jenkins: '2.342'], |
?
On the mailing list you posted a stack trace from CliGitSCMTriggerLocalPollTest but of course that is not visible in CI because you are not actually running Java 17.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching that. Made the same change in multiple repositories and failed to finish the job in this one.
Fixed the mistake in c8e4e1f
|
Running locally I do see I do see earlier in the build as expected. The test passes with diff --git pom.xml pom.xml
index 34e29fa1..afe0d153 100644
--- pom.xml
+++ pom.xml
@@ -62,7 +62,6 @@
<changelist>-SNAPSHOT</changelist>
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <argLine>-Dfile.encoding=${project.build.sourceEncoding}</argLine>
<jenkins.version>2.289.1</jenkins.version>
<no-test-jar>false</no-test-jar>
<useBeta>true</useBeta>Not sure why Lines 64 to 65 in 1435a5e
@basil is it known that an explicit |
|
(Or we could introduce a property like |
Basil explained:
> [You are] overriding the <argLine> from the plugin parent POM in your
> plugin POM. This override is not extending the original value but
> replacing it, just as overriding a method in a subclass without calling
> super() in Java code would replace the original method rather than
> extend it. As of 4.39 this meant that your plugin was blanking out the
> -Xms, -Xmx, -XX:HeapDumpOnOutOfMemoryError, -XX:TieredCompilation, and
> -XX:TieredStopAtLevel settings from the plugin parent POM – incorrect,
> but harmless. As of 4.40, this means your plugin is blanking out the
> @{jenkins.addOpens} and @{jenkins.insaneHook} settings from the plugin
> parent POM – incorrect, and harmful when running on Java 17.
Nice improvement to remove an unhelpful setting.
Earlier change did not actually test Java 17.
|
Also removed the source encoding setting without seeing any negative affect on compile time messages. See e711ad8 |
Java 17 does not accept it
Test Java 17 in additional to Java 11 and Java 8
Use Java 17 in the Jenkinsfile to compile and test.
Tests are failing with a serialization error. I need more guidance on the changes needed to fix the failing tests.
Checklist
Types of changes