aboutsummaryrefslogtreecommitdiffstats
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2018-11-01 17:35:09 +0100
committerMartin Stockhammer <martin_s@apache.org>2018-11-01 17:35:09 +0100
commit88c991837adf37905c031ef75187f345f9998245 (patch)
treebd5d83c235701b69bc88112934f893130105a1bf /Jenkinsfile
parent39b2449b7d545295227e576247ecd67afd1cd925 (diff)
downloadarchiva-88c991837adf37905c031ef75187f345f9998245.tar.gz
archiva-88c991837adf37905c031ef75187f345f9998245.zip
Changing ci build pipeline
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile28
1 files 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"
}
}
}