Skip to content

Commit 28a34f8

Browse files
authored
Run parallel tests in CI (#198)
* 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.
1 parent d689167 commit 28a34f8

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

Jenkinsfile

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
// Specify configurations explicitly to test against newer LTS.
22
// See also https://github.com/jenkins-infra/pipeline-library/pull/145
33

4-
buildPlugin(useContainerAgent: true, configurations: [
5-
[ platform: 'linux', jdk: '11' ],
6-
[ platform: 'windows', jdk: '17' ],
7-
])
4+
buildPlugin(
5+
// Run a JVM per core in tests
6+
forkCount: '1C',
7+
// Container agents start faster and are easier to administer
8+
useContainerAgent: true,
9+
// Show failures on all configurations
10+
failFast: false,
11+
// Test Java 11 and Java 17
12+
configurations: [
13+
[platform: 'linux', jdk: '17'], // Linux first for coverage report on ci.jenkins.io
14+
[platform: 'windows', jdk: '11'],
15+
]
16+
)

pom.xml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -165,17 +165,6 @@
165165
<scope>import</scope>
166166
<type>pom</type>
167167
</dependency>
168-
<dependency>
169-
<groupId>javax.annotation</groupId>
170-
<artifactId>javax.annotation-api</artifactId>
171-
<version>1.3.2</version>
172-
</dependency>
173-
<dependency>
174-
<groupId>commons-net</groupId>
175-
<artifactId>commons-net</artifactId>
176-
<version>3.9.0</version>
177-
<scope>test</scope>
178-
</dependency>
179168
</dependencies>
180169
</dependencyManagement>
181170

0 commit comments

Comments
 (0)