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

Run tests with multiple cores in CI #251

Merged
merged 3 commits into from
Jul 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

/* `buildPlugin` step provided by: https://github.com/jenkins-infra/pipeline-library */
buildPlugin(
// Run a JVM per core in tests
forkCount: '1C',
// Container agents start faster and are easier to administer
useContainerAgent: true,
// Show failures on all configurations
failFast: false,
// Test Java 11 with minimum Jenkins version, Java 17 with a more recent version
// Test Java 11 and Java 17
configurations: [
[platform: 'linux', jdk: '11'], // Linux first for coverage report on ci.jenkins.io
[platform: 'windows', jdk: '17', jenkins: '2.407'],
[platform: 'linux', jdk: '17'], // Linux first for coverage report on ci.jenkins.io
[platform: 'windows', jdk: '11'],
]
)
29 changes: 1 addition & 28 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
</developer>
</developers>

<scm child.scm.connection.inherit.append.path="false" child.scm.developerConnection.inherit.append.path="false" child.scm.url.inherit.append.path="false">
<scm>
<connection>scm:git:https://github.com/${gitHubRepo}</connection>
<developerConnection>scm:git:git@github.com:${gitHubRepo}.git</developerConnection>
<tag>${scmTag}</tag>
Expand Down Expand Up @@ -105,31 +105,4 @@
</pluginRepository>
</pluginRepositories>

<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgs>
<arg>-Xlint:all</arg>
</compilerArgs>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>continuous-integration</id>
<activation>
<property>
<name>env.CI</name>
</property>
</activation>
<properties>
<!-- Fork a JVM per core for automated tests on continuous integration servers -->
<forkCount>1C</forkCount>
</properties>
</profile>
</profiles>
</project>