From f7454492be408cd2f724ed24bc03cf2a9e19a881 Mon Sep 17 00:00:00 2001 From: Harry Smith Date: Tue, 9 Jun 2020 13:02:12 +0100 Subject: [PATCH] DWN-33428 : convert indents to tabs in Jenkinsfile --- Jenkinsfile | 114 ++++++++++++++++++++++++++-------------------------- 1 file changed, 57 insertions(+), 57 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 43ac38172..5ff4523bd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,5 @@ pipeline { - agent any + agent any tools { maven 'Maven 3.3.9' jdk 'Java 8' @@ -39,69 +39,69 @@ pipeline { } } stage ('1.3.3 Release Build') { - when { - expression { - return BRANCH_NAME == "1.3.x" && params.RELEASE - } - } - steps { - sh "mvn versions:set -B -DnewVersion=$VERSION" - sh "mvn -N -B versions:update-child-modules" + when { + expression { + return BRANCH_NAME == "1.3.x" && params.RELEASE + } + } + steps { + sh "mvn versions:set -B -DnewVersion=$VERSION" + sh "mvn -N -B versions:update-child-modules" script { sh "git commit --all --message 'Creating Release $VERSION'" sh "git tag --annotate v$VERSION --message 'Creating Release $VERSION'" sh "git push origin HEAD:${BRANCH_NAME} --tags" } - timeout(time: 10, unit: 'MINUTES') { - withMaven(options: [jUnitPublisher(disabled: true)]) { - sh "mvn -B -V -U -T4 clean deploy -DaltReleaseDeploymentRepository=releases::default::https://nexus.greshamtech.com/repository/thirdparty-maven-releases/" - } - } - } - post { - success { - junit '**/target/surefire-reports/**/*.xml' - } - } - } - stage ('1.3.3 Snapshot Build') { - when { - expression { - return BRANCH_NAME == "1.3.x" && !params.RELEASE - } - } - steps { - timeout(time: 10, unit: 'MINUTES') { - withMaven(options: [jUnitPublisher(disabled: true)]) { - sh "mvn -B -V -U -T4 clean deploy -DaltSnapshotDeploymentRepository=snapshots::default::https://nexus.greshamtech.com/repository/thirdparty-maven-snapshots/" - } - } - } - post { - success { - junit '**/target/surefire-reports/**/*.xml' - } - } - } + timeout(time: 10, unit: 'MINUTES') { + withMaven(options: [jUnitPublisher(disabled: true)]) { + sh "mvn -B -V -U -T4 clean deploy -DaltReleaseDeploymentRepository=releases::default::https://nexus.greshamtech.com/repository/thirdparty-maven-releases/" + } + } + } + post { + success { + junit '**/target/surefire-reports/**/*.xml' + } + } + } + stage ('1.3.3 Snapshot Build') { + when { + expression { + return BRANCH_NAME == "1.3.x" && !params.RELEASE + } + } + steps { + timeout(time: 10, unit: 'MINUTES') { + withMaven(options: [jUnitPublisher(disabled: true)]) { + sh "mvn -B -V -U -T4 clean deploy -DaltSnapshotDeploymentRepository=snapshots::default::https://nexus.greshamtech.com/repository/thirdparty-maven-snapshots/" + } + } + } + post { + success { + junit '**/target/surefire-reports/**/*.xml' + } + } + } stage ('Feature Branch Build') { when { - not { - branch "1.3.x" - } - } + not { + branch "1.3.x" + } + } steps { timeout(time: 10, unit: 'MINUTES') { withMaven(options: [junitPublisher(disabled: true)]) { sh "mvn versions:set -B -DnewVersion=${env.BRANCH_NAME}.GRESHAM-SNAPSHOT" - sh "mvn -N -B versions:update-child-modules" - sh "mvn -B -V -U -T4 clean deploy -DaltSnapshotDeploymentRepository=snapshots::default::https://nexus.greshamtech.com/repository/thirdparty-maven-snapshots/" - } - } + sh "mvn -N -B versions:update-child-modules" + sh "mvn -B -V -U -T4 clean deploy -DaltSnapshotDeploymentRepository=snapshots::default::https://nexus.greshamtech.com/repository/thirdparty-maven-snapshots/" + } + } } post { - success { - junit '**/target/surefire-reports/**/*.xml' - } + success { + junit '**/target/surefire-reports/**/*.xml' + } } } stage ('Bump Development Version') { @@ -113,15 +113,15 @@ pipeline { steps { script { sh "mvn versions:set -DnewVersion=${NEW_VERSION}-SNAPSHOT --batch-mode" - sh "git commit --all --message 'New Development Version $NEW_VERSION-SNAPSHOT'" - sh "git push origin HEAD:${BRANCH_NAME}" + sh "git commit --all --message 'New Development Version $NEW_VERSION-SNAPSHOT'" + sh "git push origin HEAD:${BRANCH_NAME}" } } } } post { - always { - deleteDir() - } - } + always { + deleteDir() + } + } }