From 88c991837adf37905c031ef75187f345f9998245 Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Thu, 1 Nov 2018 17:35:09 +0100 Subject: Changing ci build pipeline --- Jenkinsfile | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index cad0a0adb..fb57b4ddf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -55,9 +55,9 @@ pipeline { mavenSettingsConfig: deploySettings, mavenLocalRepo: ".repository", options: [concordionPublisher(disabled: true), dependenciesFingerprintPublisher(disabled: true), - findbugsPublisher(disabled: true), artifactsPublisher(disabled: true), + findbugsPublisher(disabled: true), artifactsPublisher(disabled: false), invokerPublisher(disabled: true), jgivenPublisher(disabled: true), - junitPublisher(disabled: true, ignoreAttachments: false), + junitPublisher(disabled: false, ignoreAttachments: false), openTasksPublisher(disabled: true), pipelineGraphPublisher(disabled: true)] ) { @@ -75,7 +75,7 @@ pipeline { // -Dmaven.compiler.fork=true: Do compile in a separate forked process // -Dmaven.test.failure.ignore=true: Do not stop, if some tests fail // -Pci-build: Profile for CI-Server - sh "mvn clean deploy -B -U -e -fae -T2 -Dmaven.compiler.fork=true -Pci-build" + sh "mvn clean deploy -B -U -e -fae -T1C -Dmaven.compiler.fork=true -Pci-build" } } } @@ -86,28 +86,30 @@ pipeline { } success { archiveArtifacts '**/target/*.war,**/target/*-bin.zip' + stash(name:'archiva-master-build-ws') } failure { notifyBuild("Failure in BuildAndDeploy stage") } } } - stage('IntegrationTest') { - steps { - build(job: "${INTEGRATION_PIPELINE}/archiva/${env.BRANCH_NAME}", propagate: false, quietPeriod: 10) - } - } - stage('JDKs') { + + stage('Postbuild') { parallel { + stage('IntegrationTest') { + steps { + build(job: "${INTEGRATION_PIPELINE}/archiva/${env.BRANCH_NAME}", propagate: false, quietPeriod: 10) + } + } stage('JDK9') { environment { ARCHIVA_USER_CONFIG_FILE='/tmp/archiva-master-jdk-9-${env.JOB_NAME}.xml' } steps { ws("${env.JOB_NAME}-JDK9") { - checkout scm + unstash(name:'archiva-master-build-ws') timeout(120) { withMaven(maven: buildMvn, jdk: buildJdk9, mavenSettingsConfig: deploySettings, @@ -119,7 +121,7 @@ pipeline { openTasksPublisher(disabled: true), pipelineGraphPublisher(disabled: true)] ) { - sh "mvn clean install -B -U -e -fae -T2 -Dmaven.compiler.fork=true -Pci-build" + sh "mvn clean install -B -e -fae -T1C -Dmaven.compiler.fork=true -Pci-build" } } } @@ -136,7 +138,7 @@ pipeline { } steps { ws("${env.JOB_NAME}-JDK10") { - checkout scm + unstash(name:'archiva-master-build-ws') timeout(120) { withMaven(maven: buildMvn, jdk: buildJdk10, mavenSettingsConfig: deploySettings, @@ -148,7 +150,7 @@ pipeline { openTasksPublisher(disabled: true), pipelineGraphPublisher(disabled: true)] ) { - sh "mvn clean install -B -U -e -fae -T2 -Dmaven.compiler.fork=true -Pci-build" + sh "mvn clean install -B -e -fae -T1C -Dmaven.compiler.fork=true -Pci-build" } } } -- cgit v1.2.3