jenkins: fix syntax #2
This commit is contained in:
parent
b1b0a6a2c8
commit
b1d49b01f5
1 changed files with 8 additions and 4 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -12,17 +12,21 @@ pipeline {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
parallel {
|
parallel {
|
||||||
stage('Java 8') {
|
stage('Java 8') {
|
||||||
|
steps {
|
||||||
withMaven(maven: 'maven 3.5.2', jdk: 'JDK 1.8') {
|
withMaven(maven: 'maven 3.5.2', jdk: 'JDK 1.8') {
|
||||||
sh 'mvn clean install'
|
sh 'mvn clean install'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
stage('Java 9') {
|
stage('Java 9') {
|
||||||
|
steps {
|
||||||
withMaven(maven: 'maven 3.5.2', jdk: 'JDK 9') {
|
withMaven(maven: 'maven 3.5.2', jdk: 'JDK 9') {
|
||||||
sh 'mvn clean install'
|
sh 'mvn clean install'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
stage('Reporting') {
|
stage('Reporting') {
|
||||||
steps {
|
steps {
|
||||||
junit '**/target/surefire-reports/*.xml'
|
junit '**/target/surefire-reports/*.xml'
|
||||||
|
|
Loading…
Reference in a new issue