Skip to content
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

Merged
merged 2 commits into from
May 29, 2020

Conversation

dwnusbaum
Copy link
Member

#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.

Copy link

@kshultzCB kshultzCB left a 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 ]

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?

Copy link
Member Author

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.

Copy link
Member Author

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.

Jenkinsfile Show resolved Hide resolved
Jenkinsfile Outdated Show resolved Hide resolved
Jenkinsfile Outdated Show resolved Hide resolved
Co-authored-by: Jesse Glick <jglick@cloudbees.com>
@dwnusbaum
Copy link
Member Author

Rebuilding:

[2020-05-28T20:57:15.881Z] EC2 (aws) - Ubuntu 18.04 LTS (i-0fe3f98bb2db782d4) was marked offline: Node is being removed
Unable to create live FilePath for EC2 (aws) - Ubuntu 18.04 LTS (i-0fe3f98bb2db782d4)

@dwnusbaum dwnusbaum closed this May 29, 2020
@dwnusbaum dwnusbaum reopened this May 29, 2020
@dwnusbaum
Copy link
Member Author

EC2 (aws) - Ubuntu 18.04 LTS (i-0ea714d759e16f365) was marked offline: Connection was broken: java.io.EOFException

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.

5 participants