m2release-plugin/Jenkinsfile

35 lines
708 B
Plaintext
Raw Permalink Normal View History

2016-09-17 01:28:03 +00:00
#!/usr/bin/env groovy
2016-09-17 02:56:17 +00:00
String mavenCommand = 'mvn clean install -Dmaven.test.failure.ignore=true'
2016-09-17 03:12:41 +00:00
String testReports = '**/target/surefire-reports/**/*.xml'
2016-09-17 02:56:17 +00:00
2016-09-17 03:12:41 +00:00
Map platforms = [:]
platforms['windows'] = {
2016-09-17 02:56:17 +00:00
node('windows') {
checkout scm
withEnv([
"JAVA_HOME=${tool 'jdk7'}",
"PATH+MAVEN=${tool 'mvn'}/bin",
]) {
2016-09-17 02:56:17 +00:00
bat mavenCommand
}
junit testReports
2016-09-17 02:56:17 +00:00
}
}
platforms['linux'] = {
2016-09-17 02:56:17 +00:00
node('linux') {
checkout scm
withEnv([
"JAVA_HOME=${tool 'jdk7'}",
"PATH+MAVEN=${tool 'mvn'}/bin",
]) {
2016-09-17 02:56:17 +00:00
sh mavenCommand
}
junit testReports
2016-09-17 01:28:03 +00:00
}
}
parallel(platforms)