fix syntax
Signed-off-by: olivier lamy <olamy@apache.org>
This commit is contained in:
parent
f3aae5b77b
commit
f2b452e6fd
|
@ -31,14 +31,10 @@ LABEL = 'ubuntu'
|
||||||
buildJdk = 'JDK 1.8 (latest)'
|
buildJdk = 'JDK 1.8 (latest)'
|
||||||
buildJdk11 = 'JDK 11 (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 {
|
pipeline {
|
||||||
agent { label "${LABEL}" }
|
agent { label "${LABEL}" }
|
||||||
options {
|
options {
|
||||||
|
durabilityHint('PERFORMANCE_OPTIMIZED')
|
||||||
buildDiscarder(logRotator(numToKeepStr: '7', artifactNumToKeepStr: '5'))
|
buildDiscarder(logRotator(numToKeepStr: '7', artifactNumToKeepStr: '5'))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,7 +44,10 @@ pipeline {
|
||||||
stage( 'BuildAndDeploy-JDK8' ) {
|
stage( 'BuildAndDeploy-JDK8' ) {
|
||||||
options { timeout(time: 120, unit: 'MINUTES') }
|
options { timeout(time: 120, unit: 'MINUTES') }
|
||||||
steps {
|
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 {
|
}post {
|
||||||
failure {
|
failure {
|
||||||
|
|
Loading…
Reference in New Issue