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

Use Jenkinsfile from archetype #100

Merged

Conversation

MarkEWaite
Copy link
Contributor

Use Jenkinsfile from archetype

Use the Jenkinsfile from the plugin archetype in order to reduce differences throughout the Jenkins organization.

This intentionally reduces CI costs by running tests in fewer configurations. It intentionally skips tests on Java 11 because we are compiling to Java 11 byte code and testing on Java 21 (Linux) and Java 17 (Windows) with the Java 11 byte code. It intentionally removes the Jenkins version specific tests because after they have passed once, they almost never fail in later tests.

The Jenkinsfile from the plugin archetype is extended to run tests in parallel in order to reduce the time and cost of tests.

jenkinsci/archetypes#650 describes the alternatives for Jenkinsfile configurations.

Testing done

Plugin archetype Jenkinsfile has been verified in many repositories. No additional testing performed here.

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 demonstrates feature works or fixes the issue

Use the Jenkinsfile from the plugin archetype in order to reduce
differences throughout the Jenkins organization.

This intentionally reduces CI costs by running tests in fewer
configurations.  It intentionally skips tests on Java 11 because we are
compiling to Java 11 byte code and testing on Java 21 (Linux) and Java
17 (Windows) with the Java 11 byte code.  It intentionally removes the
Jenkins version specific tests because after they have passed once,
they almost never fail in later tests.

The Jenkinsfile from the plugin archetype is extended to run tests in
parallel in order to reduce the time and cost of tests.

jenkinsci/archetypes#650 describes the
alternatives for Jenkinsfile configurations.
@MarkEWaite MarkEWaite merged commit 2eff4e9 into jenkinsci:master Sep 23, 2023
13 checks passed
@MarkEWaite MarkEWaite deleted the test-with-Java-21-and-Java-17 branch September 23, 2023 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant