Skip to content

Commit

Permalink
Run parallel tests in CI (#198)
Browse files Browse the repository at this point in the history
* Remove unused dependency references

* Run parallel tests in CI

The plugin includes several long running tests that benefit from using
at least one JVM per core on the test machine.
  • Loading branch information
MarkEWaite authored Aug 3, 2023
1 parent d689167 commit 28a34f8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
17 changes: 13 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
// Specify configurations explicitly to test against newer LTS.
// See also https://github.com/jenkins-infra/pipeline-library/pull/145

buildPlugin(useContainerAgent: true, configurations: [
[ platform: 'linux', jdk: '11' ],
[ platform: 'windows', jdk: '17' ],
])
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 and Java 17
configurations: [
[platform: 'linux', jdk: '17'], // Linux first for coverage report on ci.jenkins.io
[platform: 'windows', jdk: '11'],
]
)
11 changes: 0 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -165,17 +165,6 @@
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>3.9.0</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down

0 comments on commit 28a34f8

Please sign in to comment.