Jenkins: parallel must be part of a stage
@@ -25,6 +25,7 @@ pipeline {
}
}
}
+ stage('Build') {
parallel {
stage('JDK 11') {
agent {
@@ -138,7 +139,6 @@ pipeline {
sh 'mvn -B source:jar javadoc:jar -DskipAssembbly'
}
}
- }
stage('Deploy Snapshot') {
when {
branch 'master'
@@ -167,6 +167,8 @@ pipeline {
}
}
}
+ }
+ }
post {
// If this build failed, send an email to the list.
failure {
