Skip to content

fix: restore argLine in vanilla-package surefire config - #740

Merged
oleg-nenashev merged 1 commit into
jenkinsci:mainfrom
romanisb:fix-tests-after-java21-migration
Jun 30, 2026
Merged

fix: restore argLine in vanilla-package surefire config#740
oleg-nenashev merged 1 commit into
jenkinsci:mainfrom
romanisb:fix-tests-after-java21-migration

Conversation

@romanisb

Copy link
Copy Markdown
Contributor

@oleg-nenashev this should fix the two CI tests failing in https://github.com/jenkinsci/jenkinsfile-runner/runs/84234113409.

Testing done

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

@romanisb
romanisb requested a review from a team as a code owner June 30, 2026 07:39
Comment thread vanilla-package/pom.xml
<excludes>
<exclude>**/its/**.java</exclude>
</excludes>
<argLine>-Djdk.net.URLClassPath.disableClassPathURLCheck=true --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED ${argLine}</argLine>

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.

The override, defined in lin 228, removes the surefire settings from https://github.com/jenkinsci/jenkinsfile-runner/blob/main/pom.xml#L201. Not sure which direction is prefered here. Just reused the configuration again here. Could be considered to clean up all the configuration in the future at one point.

@romanisb

Copy link
Copy Markdown
Contributor Author

@oleg-nenashev if everything is fine, would it be possible to trigger a new release?

@oleg-nenashev
oleg-nenashev merged commit 0cb622f into jenkinsci:main Jun 30, 2026
10 checks passed
@romanisb
romanisb deleted the fix-tests-after-java21-migration branch July 13, 2026 06:28
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.

2 participants