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)
}
}
}
stage('JDKs') {
parallel {
stage('JDK9') {
steps {
ws("${env.JOB_NAME}-JDK9") {
checkout scm
timeout(120) {
withMaven(maven: buildMvn, jdk: buildJdk9,
mavenSettingsConfig: deploySettings,
mavenLocalRepo: ".repository",
options: [concordionPublisher(disabled: true), dependenciesFingerprintPublisher(disabled: true),
findbugsPublisher(disabled: true), artifactsPublisher(disabled: true),
invokerPublisher(disabled: true), jgivenPublisher(disabled: true),
junitPublisher(disabled: true, ignoreAttachments: false),
openTasksPublisher(disabled: true), pipelineGraphPublisher(disabled: true)]
)
{
sh "mvn clean install -B -U -e -fae -T2"
}
stage('JDKs') {
parallel {
stage('JDK9') {
steps {
ws("${env.JOB_NAME}-JDK9") {
checkout scm
timeout(120) {
withMaven(maven: buildMvn, jdk: buildJdk9,
mavenSettingsConfig: deploySettings,
mavenLocalRepo: ".repository",
options: [concordionPublisher(disabled: true), dependenciesFingerprintPublisher(disabled: true),
findbugsPublisher(disabled: true), artifactsPublisher(disabled: true),
invokerPublisher(disabled: true), jgivenPublisher(disabled: true),
junitPublisher(disabled: true, ignoreAttachments: false),
openTasksPublisher(disabled: true), pipelineGraphPublisher(disabled: true)]
)
{
sh "mvn clean install -B -U -e -fae -T2"
}
}
}
}
}
}
stage('JDK10') {
steps {
ws("${env.JOB_NAME}-JDK10") {
checkout scm
timeout(120) {
withMaven(maven: buildMvn, jdk: buildJdk10,
mavenSettingsConfig: deploySettings,
mavenLocalRepo: ".repository",
options: [concordionPublisher(disabled: true), dependenciesFingerprintPublisher(disabled: true),
findbugsPublisher(disabled: true), artifactsPublisher(disabled: true),
invokerPublisher(disabled: true), jgivenPublisher(disabled: true),
junitPublisher(disabled: true, ignoreAttachments: false),
openTasksPublisher(disabled: true), pipelineGraphPublisher(disabled: true)]
)
{
sh "mvn clean install -B -U -e -fae -T2"
}
stage('JDK10') {
steps {
ws("${env.JOB_NAME}-JDK10") {
checkout scm
timeout(120) {
withMaven(maven: buildMvn, jdk: buildJdk10,
mavenSettingsConfig: deploySettings,
mavenLocalRepo: ".repository",
options: [concordionPublisher(disabled: true), dependenciesFingerprintPublisher(disabled: true),
findbugsPublisher(disabled: true), artifactsPublisher(disabled: true),
invokerPublisher(disabled: true), jgivenPublisher(disabled: true),
junitPublisher(disabled: true, ignoreAttachments: false),
openTasksPublisher(disabled: true), pipelineGraphPublisher(disabled: true)]
)
{
sh "mvn clean install -B -U -e -fae -T2"
}
}
}
}
}
}
}
}
post {