no need of parallel and current ASF jenkins version do not support yet nested parallel...
Signed-off-by: olivier lamy <olamy@apache.org>
This commit is contained in:
parent
f2b452e6fd
commit
4d9389346f
|
@ -31,6 +31,11 @@ LABEL = 'ubuntu'
|
|||
buildJdk = 'JDK 1.8 (latest)'
|
||||
buildJdk11 = 'JDK 11 (latest)'
|
||||
|
||||
def defaultPublishers = [artifactsPublisher(disabled: false), junitPublisher(ignoreAttachments: false, disabled: false),
|
||||
findbugsPublisher(disabled: true), openTasksPublisher(disabled: true),
|
||||
dependenciesFingerprintPublisher(disabled: false), invokerPublisher(disabled: true),
|
||||
pipelineGraphPublisher(disabled: false)]
|
||||
|
||||
pipeline {
|
||||
agent { label "${LABEL}" }
|
||||
options {
|
||||
|
@ -40,18 +45,14 @@ pipeline {
|
|||
|
||||
stages {
|
||||
stage( 'Builds' ) {
|
||||
parallel {
|
||||
stage( 'BuildAndDeploy-JDK8' ) {
|
||||
options { timeout(time: 120, unit: 'MINUTES') }
|
||||
steps {
|
||||
mavenBuild( buildJdk, "clean deploy -U -fae -T3", 'Maven 3.5.2', [artifactsPublisher(disabled: false), junitPublisher(ignoreAttachments: false, disabled: false),
|
||||
findbugsPublisher(disabled: true), openTasksPublisher(disabled: true),
|
||||
dependenciesFingerprintPublisher(disabled: false), invokerPublisher(disabled: true),
|
||||
pipelineGraphPublisher(disabled: false)] )
|
||||
mavenBuild( buildJdk, "clean deploy -U -fae -T3", 'Maven 3.5.2', defaultPublishers)
|
||||
}
|
||||
}post {
|
||||
failure {
|
||||
notifyBuild( "Failure in BuildAndDeploy Stage ")
|
||||
notifyBuild( "Failure in BuildAndDeploy-JDK8 Stage ")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -66,7 +67,6 @@ pipeline {
|
|||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue