-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
35 lines (30 loc) · 722 Bytes
/
Jenkinsfile
File metadata and controls
35 lines (30 loc) · 722 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
33
34
35
#!/usr/bin/env groovy
String mavenCommand = 'mvn clean install -Dmaven.test.failure.ignore=true'
String testReports = '**/target/surefire-reports/**/*.xml'
Map platforms = [:]
platforms['windows'] = {
node('windows') {
checkout scm
withEnv([
"JAVA_HOME=${tool 'jdk7'}",
"PATH+MAVEN=${tool 'mvn'}/bin",
]) {
bat mavenCommand
}
junit testReports
}
}
platforms['linux'] = {
node('linux') {
checkout scm
withEnv([
"JAVA_HOME=${tool 'jdk7'}",
"PATH+MAVEN=${tool 'mvn'}/bin",
]) {
sh mavenCommand
}
junit testReports
}
}
stage 'build'
parallel(platforms)