Skip to content

[PINT-287] Changed plugin to Java 11#404

Merged
rahulkaukuntla merged 33 commits into
masterfrom
rahul-jenkins-java11
Apr 18, 2024
Merged

[PINT-287] Changed plugin to Java 11#404
rahulkaukuntla merged 33 commits into
masterfrom
rahul-jenkins-java11

Conversation

@rahulkaukuntla

@rahulkaukuntla rahulkaukuntla commented Mar 19, 2024

Copy link
Copy Markdown
Contributor

What does this PR do?

Updating plugin to Java 11.

Description of the Change

Alternate Designs

Possible Drawbacks

Verification Process

Additional Notes

Release Notes

Review checklist (to be filled by reviewers)

  • Feature or bug fix MUST have appropriate tests (unit, integration, etc...)
  • PR title must be written as a CHANGELOG entry (see why)
  • Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
  • PR must have one changelog/ label attached. If applicable it should have the backward-incompatible label attached.
  • PR should not have do-not-merge/ label attached.
  • If Applicable, issue must have kind/ and severity/ labels attached at least.

@rahulkaukuntla rahulkaukuntla changed the title Updating plugin to Java 11 [PINT-287] Updating plugin to Java 11 Mar 20, 2024
@rahulkaukuntla rahulkaukuntla changed the title [PINT-287] Updating plugin to Java 11 [PINT-287] Changed plugin to Java 11 Mar 29, 2024
@rahulkaukuntla
rahulkaukuntla marked this pull request as ready for review March 29, 2024 19:10
Comment thread Jenkinsfile
Comment thread Jenkinsfile Outdated
@github-actions github-actions Bot added the documentation Documentation related changes label Apr 2, 2024
Comment thread pom.xml
Comment thread pom.xml Outdated
Comment thread src/main/java/org/datadog/jenkins/plugins/datadog/DatadogUtilities.java Outdated
Comment thread src/main/java/org/datadog/jenkins/plugins/datadog/DatadogUtilities.java Outdated
Comment thread src/main/java/org/datadog/jenkins/plugins/datadog/model/BuildData.java Outdated
Comment thread src/main/java/org/datadog/jenkins/plugins/datadog/DatadogUtilities.java Outdated
Comment thread src/main/java/org/datadog/jenkins/plugins/datadog/DatadogUtilities.java Outdated
Comment thread DEVELOPMENT.md Outdated
Comment thread pom.xml
Comment thread pom.xml Outdated
Comment thread pom.xml Outdated
Comment thread src/main/java/org/datadog/jenkins/plugins/datadog/model/BuildData.java Outdated
Comment thread src/main/java/org/datadog/jenkins/plugins/datadog/DatadogUtilities.java Outdated
Comment thread DEVELOPMENT.md Outdated
Comment thread DEVELOPMENT.md Outdated
Comment thread Jenkinsfile Outdated
@@ -1,13 +1,13 @@
def comonVersion = "2.356"
def recentLTS = "2.346.1"
def comonVersion = "2.362"

@nikita-tkachenko-datadog nikita-tkachenko-datadog Apr 11, 2024

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

If I understand correctly the original goal of this CI config was to have a testing matrix that would check the plugin with the min and the max version of Jenkins that the plugin supports.
If this is still the intention, then we should change this version to 2.453 (the latest release at the moment, still seems to support Java 11).

While we're at it, we could also fix the "comon" typo (and change it to "common" or even "latestSupported").

Also, the original matrix tested the plugin with two different Java versions: 8 and 11. I think it makes sense to continue doing so. We can change the JDK of the "common version" builds to 17 (as this blog post says, Java 17 is being rapidly adopted to run Jenkins now).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Changing the latestSupported version to 2.453 requires manual version changes below:
Screenshot 2024-04-12 at 10 02 10 AM

However, including these version bumps causes the build to break for the recentLTS version--as such I decided to only bump up the latestSupported to the max version that could be built without breaking the recentLTS version.

Comment thread Jenkinsfile Outdated
Comment thread pom.xml
<jenkins.version>2.361.4</jenkins.version>
<hpi.compatibleSinceVersion>1.0.0</hpi.compatibleSinceVersion>
<!-- byte-buddy is needed until we bump to java 11: https://stackoverflow.com/questions/69929229/mockito-shipped-within-spring-boot-fails-to-attach-to-jvm-openjdk-11/72912290#72912290 -->
<byte-buddy.version>1.12.14</byte-buddy.version>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Just noticed this comment saying "byte-buddy is needed until we bump to java 11". Have you looked into whether we can remove it now?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, I have. Looking at the link in the comment, it seems that user needed to do this fix while using jdk11, so saying that it is needed until java 11 is misleading. I will modify the comment.

@nikita-tkachenko-datadog nikita-tkachenko-datadog left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me. It would be ideal to update the testing matrix to have Java 17 and the latest Jenkins release, but this can be done as a separate task.

@rahulkaukuntla
rahulkaukuntla merged commit 27d5a56 into master Apr 18, 2024
@rahulkaukuntla
rahulkaukuntla deleted the rahul-jenkins-java11 branch April 18, 2024 16:40
nikita-tkachenko-datadog added a commit that referenced this pull request May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants