forked from jenkinsci/analysis-model
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile.parallel.declarative
More file actions
32 lines (32 loc) · 986 Bytes
/
Jenkinsfile.parallel.declarative
File metadata and controls
32 lines (32 loc) · 986 Bytes
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
pipeline {
agent 'any'
tools {
maven 'mvn-default'
jdk 'jdk-default'
}
stages {
stage ('Build') {
parallel {
stage('node1') {
agent { label "node1" }
steps {
sh '${M2_HOME}/bin/mvn --batch-mode -V -U -e clean verify -Dsurefire.useFile=false -Dmaven.test.failure.ignore'
}
}
stage('node2') {
agent { label "node2" }
steps {
sh '${M2_HOME}/bin/mvn --batch-mode -V -U -e clean verify -Dsurefire.useFile=false -Dmaven.test.failure.ignore'
}
}
}
}
}
post {
always {
recordIssues tools: [[tool: java()],
[tool: javaDoc()],
[tool: taskScanner(includePattern:'**/*.java', highTags:'FIXME', normalTags:'TODO')]]
}
}
}