fix syntax

Signed-off-by: olivier lamy <olamy@apache.org>
This commit is contained in:
olivier lamy 2018-12-30 08:49:54 +10:00
parent f3aae5b77b
commit f2b452e6fd
1 changed files with 5 additions and 6 deletions

11
Jenkinsfile vendored
View File

@ -31,14 +31,10 @@ 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 {
durabilityHint('PERFORMANCE_OPTIMIZED')
buildDiscarder(logRotator(numToKeepStr: '7', artifactNumToKeepStr: '5'))
}
@ -48,7 +44,10 @@ pipeline {
stage( 'BuildAndDeploy-JDK8' ) {
options { timeout(time: 120, unit: 'MINUTES') }
steps {
mavenBuild( buildJdk, "clean deploy -U -fae -T3", 'Maven 3.5.2', defaultPublishers )
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)] )
}
}post {
failure {