forked from jenkinsci/remoting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
45 lines (41 loc) · 1.27 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env groovy
properties([[$class: 'BuildDiscarderProperty',
strategy: [$class: 'LogRotator', numToKeepStr: '10']]])
/* These platforms correspond to labels in ci.jenkins.io, see:
* https://github.com/jenkins-infra/documentation/blob/master/ci.adoc
*/
parallel linux: {
node('maven') {
stage('Checkout') {
checkout scm
}
stage('Build') {
timeout(30) {
sh 'mvn -B -ntp -Dset.changelist clean install -Dmaven.test.failure.ignore -e'
}
}
stage('Archive') {
junit '**/target/surefire-reports/TEST-*.xml'
recordIssues(
enabledForFailure: true, aggregatingResults: true,
tools: [java(), spotBugs(pattern: '**/target/spotbugsXml.xml')]
)
infra.prepareToPublishIncrementals()
}
}
}, windows: {
node('windows') {
stage('Checkout') {
checkout scm
}
stage('Build') {
timeout(30) {
infra.runMaven(['clean verify -Dmaven.test.failure.ignore'])
}
}
stage('Archive') {
junit '**/target/surefire-reports/TEST-*.xml'
}
}
}, failFast: true
infra.maybePublishIncrementals()