From e6b816efc89f887a393269f0233781a98ac7664b Mon Sep 17 00:00:00 2001 From: Gaurav Katiyar Date: Wed, 26 Sep 2018 12:11:08 +0100 Subject: [PATCH] Created internal release for MitreID Connect --- Jenkinsfile | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6d55172c8..59ecc0db8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,9 +18,32 @@ pipeline { disableConcurrentBuilds(); } stages { + stage ('1.3.3 Build') { + when { + branch "1.3.x" + } + steps { + sh "mvn versions:set -DnewVersion=1.3.3.GRESHAM-${env.BUILD_NUMBER}" + sh "mvn -N versions:update-child-modules" + + timeout(time: 10, unit: 'MINUTES') { + sh "mvn -B -V -U -T4 clean deploy -DaltReleaseDeploymentRepository=releases::default::https://nexus.greshamtech.com/content/repositories/third-party/" + } + } + post { + always{ + archiveArtifacts caseSensitive: false, onlyIfSuccessful: true, allowEmptyArchive: true, artifacts: 'db-scripts-generator/target/*.jar,**auth.war' + } + } + } stage ('Build') { + when { + not { + branch "1.3.x" + } + } steps { - sh "mvn versions:set -DnewVersion=1.3.3.GRESHAM-SNAPSHOT" + sh "mvn versions:set -DnewVersion=${env.BRANCH_NAME}.GRESHAM-SNAPSHOT" sh "mvn -N versions:update-child-modules" timeout(time: 10, unit: 'MINUTES') { sh "mvn -B -V -U -T4 clean deploy -DaltSnapshotDeploymentRepository=snapshots::default::https://nexus.greshamtech.com/content/repositories/third-party-snapshots/"