Fixing Jenkinsfile syntax

This commit is contained in:
Martin Stockhammer 2018-05-19 19:51:17 +02:00
parent c87933a4a6
commit 3053e005cd
1 changed files with 40 additions and 38 deletions

78
Jenkinsfile vendored
View File

@ -90,53 +90,55 @@ pipeline {
build(job: "${INTEGRATION_PIPELINE}/archiva/${env.BRANCH_NAME}", propagate: false, quietPeriod: 10) build(job: "${INTEGRATION_PIPELINE}/archiva/${env.BRANCH_NAME}", propagate: false, quietPeriod: 10)
} }
} }
}
stage('JDKs') {
parallel { stage('JDKs') {
stage('JDK9') { parallel {
steps { stage('JDK9') {
ws("${env.JOB_NAME}-JDK9") { steps {
checkout scm ws("${env.JOB_NAME}-JDK9") {
timeout(120) { checkout scm
withMaven(maven: buildMvn, jdk: buildJdk9, timeout(120) {
mavenSettingsConfig: deploySettings, withMaven(maven: buildMvn, jdk: buildJdk9,
mavenLocalRepo: ".repository", mavenSettingsConfig: deploySettings,
options: [concordionPublisher(disabled: true), dependenciesFingerprintPublisher(disabled: true), mavenLocalRepo: ".repository",
findbugsPublisher(disabled: true), artifactsPublisher(disabled: true), options: [concordionPublisher(disabled: true), dependenciesFingerprintPublisher(disabled: true),
invokerPublisher(disabled: true), jgivenPublisher(disabled: true), findbugsPublisher(disabled: true), artifactsPublisher(disabled: true),
junitPublisher(disabled: true, ignoreAttachments: false), invokerPublisher(disabled: true), jgivenPublisher(disabled: true),
openTasksPublisher(disabled: true), pipelineGraphPublisher(disabled: true)] junitPublisher(disabled: true, ignoreAttachments: false),
) openTasksPublisher(disabled: true), pipelineGraphPublisher(disabled: true)]
{ )
sh "mvn clean install -B -U -e -fae -T2" {
} sh "mvn clean install -B -U -e -fae -T2"
}
}
} }
} }
} }
} stage('JDK10') {
stage('JDK10') { steps {
steps { ws("${env.JOB_NAME}-JDK10") {
ws("${env.JOB_NAME}-JDK10") { checkout scm
checkout scm timeout(120) {
timeout(120) { withMaven(maven: buildMvn, jdk: buildJdk10,
withMaven(maven: buildMvn, jdk: buildJdk10, mavenSettingsConfig: deploySettings,
mavenSettingsConfig: deploySettings, mavenLocalRepo: ".repository",
mavenLocalRepo: ".repository", options: [concordionPublisher(disabled: true), dependenciesFingerprintPublisher(disabled: true),
options: [concordionPublisher(disabled: true), dependenciesFingerprintPublisher(disabled: true), findbugsPublisher(disabled: true), artifactsPublisher(disabled: true),
findbugsPublisher(disabled: true), artifactsPublisher(disabled: true), invokerPublisher(disabled: true), jgivenPublisher(disabled: true),
invokerPublisher(disabled: true), jgivenPublisher(disabled: true), junitPublisher(disabled: true, ignoreAttachments: false),
junitPublisher(disabled: true, ignoreAttachments: false), openTasksPublisher(disabled: true), pipelineGraphPublisher(disabled: true)]
openTasksPublisher(disabled: true), pipelineGraphPublisher(disabled: true)] )
) {
{ sh "mvn clean install -B -U -e -fae -T2"
sh "mvn clean install -B -U -e -fae -T2" }
} }
} }
} }
} }
} }
} }
} }
post { post {