-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Install a specific version of Maven #32
Conversation
jenkinsci/maven-hpi-plugin#668 is another reason to ensure a recent Maven. |
See actions/setup-java#685 (a different fix for the same issue) for comparison. I am not implying that one solution is better or worse than another, but rather I am mentioning the alternative for completeness. |
Thanks I saw also this page. To be honest I don't have a strong opinion about the approach. As long is consistent across Jenkins reusable workflows I just choose this action Let me know and I can adapt the PR with the choose approach |
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.
It's unclear what the benefit of s4u/setup-maven-action
is compared to stCarolas/setup-maven
(which it uses internally).
If we're not doing the download manually ourselves, having a smaller dependency seems better.
If we want consistency between workflows, I'll defer to the CD workflow maintainers, that's the more important one.
Once decided I will update this PR with the choose approach |
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.
jenkins-infra/github-reusable-workflows#37 was merged, so can we update this PR to match for consistency?
Sure I will update tomorrow by doing the maven download instead of composite action |
36f48f5
to
9def01b
Compare
I've applied the same change here. Ensured the maven version is correct by running test workflow here https://github.com/jenkinsci/flyway-api-plugin/pull/109/checks |
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.
Currently blocking jenkinsci/workflow-job-plugin#471
Thank you very much! |
This fixes occurrence of
Seen in https://github.com/jenkinsci/flyway-api-plugin/pull/78/checks for example
Confirmed this work by running this adapted workflow on https://github.com/jenkinsci/flyway-api-plugin/pull/99/checks
Except the maven version upgrade, the rest remain outouched
Possible caused by recent changes https://github.com/jenkinsci/maven-hpi-plugin ?
I can easily reproduce locally with Maven 3.8.8.