-
Notifications
You must be signed in to change notification settings - Fork 124
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
Replace use of recommendedPlugins with explicit configurations in Jenkinsfile #165
Conversation
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.
LGTM and the build passed too. Just had one question about it, the answer to which I probably just haven't spotted elsewhere or don't know the backstory on.
Jenkinsfile
Outdated
buildPlugin(useAci: false, configurations: [ | ||
[ platform: "linux", jdk: "8", jenkins: null ], | ||
[ platform: "windows", jdk: "8", jenkins: null ], | ||
[ platform: "linux", jdk: "11", jenkins: "2.222.3", javaLevel: 8 ] |
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.
There might be some context I've missed in the other PRs that led up to this one, but I'll ask anyway. Why specify a Jenkins version here, but not in the other two?
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: null
means to use the version specified in pom.xml
under <jenkins.version>
. We could explicitly specify 2.176.4
here instead, but then anytime we updated the version we would need to update both pom.xml
and Jenkinsfile
, which is easy to forget (not really a problem since the PR build will fail until you fix it, it's just a bit tedious). This way, we only need to update Jenkinsfile
if we want to test on a newer version than 2.222.3
.
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.
Oh and the big idea here is to test on Windows and Linux using Java 8 and the minimum required Jenkins version, then on Linux using Java 11 and a much newer LTS to make sure we don't break things for the new LTS or for Java 11.
Co-authored-by: Jesse Glick <jglick@cloudbees.com>
Rebuilding:
|
|
#163 fixed the build after it was broken by jenkins-infra/pipeline-library#92, but then jenkins-infra/pipeline-library#146 broke it again.
This PR stops using
buildPlugin.recommendedConfigurations
to avoid these kinds of issues in the first place.