DWN-33428 : convert indents to tabs in Jenkinsfile

pull/1601/head
Harry Smith 2020-06-09 13:02:12 +01:00
parent 7e6ad70daf
commit f7454492be
1 changed files with 57 additions and 57 deletions

114
Jenkinsfile vendored
View File

@ -1,5 +1,5 @@
pipeline { pipeline {
agent any agent any
tools { tools {
maven 'Maven 3.3.9' maven 'Maven 3.3.9'
jdk 'Java 8' jdk 'Java 8'
@ -39,69 +39,69 @@ pipeline {
} }
} }
stage ('1.3.3 Release Build') { stage ('1.3.3 Release Build') {
when { when {
expression { expression {
return BRANCH_NAME == "1.3.x" && params.RELEASE return BRANCH_NAME == "1.3.x" && params.RELEASE
} }
} }
steps { steps {
sh "mvn versions:set -B -DnewVersion=$VERSION" sh "mvn versions:set -B -DnewVersion=$VERSION"
sh "mvn -N -B versions:update-child-modules" sh "mvn -N -B versions:update-child-modules"
script { script {
sh "git commit --all --message 'Creating Release $VERSION'" sh "git commit --all --message 'Creating Release $VERSION'"
sh "git tag --annotate v$VERSION --message 'Creating Release $VERSION'" sh "git tag --annotate v$VERSION --message 'Creating Release $VERSION'"
sh "git push origin HEAD:${BRANCH_NAME} --tags" sh "git push origin HEAD:${BRANCH_NAME} --tags"
} }
timeout(time: 10, unit: 'MINUTES') { timeout(time: 10, unit: 'MINUTES') {
withMaven(options: [jUnitPublisher(disabled: true)]) { withMaven(options: [jUnitPublisher(disabled: true)]) {
sh "mvn -B -V -U -T4 clean deploy -DaltReleaseDeploymentRepository=releases::default::https://nexus.greshamtech.com/repository/thirdparty-maven-releases/" sh "mvn -B -V -U -T4 clean deploy -DaltReleaseDeploymentRepository=releases::default::https://nexus.greshamtech.com/repository/thirdparty-maven-releases/"
} }
} }
} }
post { post {
success { success {
junit '**/target/surefire-reports/**/*.xml' junit '**/target/surefire-reports/**/*.xml'
} }
} }
} }
stage ('1.3.3 Snapshot Build') { stage ('1.3.3 Snapshot Build') {
when { when {
expression { expression {
return BRANCH_NAME == "1.3.x" && !params.RELEASE return BRANCH_NAME == "1.3.x" && !params.RELEASE
} }
} }
steps { steps {
timeout(time: 10, unit: 'MINUTES') { timeout(time: 10, unit: 'MINUTES') {
withMaven(options: [jUnitPublisher(disabled: true)]) { withMaven(options: [jUnitPublisher(disabled: true)]) {
sh "mvn -B -V -U -T4 clean deploy -DaltSnapshotDeploymentRepository=snapshots::default::https://nexus.greshamtech.com/repository/thirdparty-maven-snapshots/" sh "mvn -B -V -U -T4 clean deploy -DaltSnapshotDeploymentRepository=snapshots::default::https://nexus.greshamtech.com/repository/thirdparty-maven-snapshots/"
} }
} }
} }
post { post {
success { success {
junit '**/target/surefire-reports/**/*.xml' junit '**/target/surefire-reports/**/*.xml'
} }
} }
} }
stage ('Feature Branch Build') { stage ('Feature Branch Build') {
when { when {
not { not {
branch "1.3.x" branch "1.3.x"
} }
} }
steps { steps {
timeout(time: 10, unit: 'MINUTES') { timeout(time: 10, unit: 'MINUTES') {
withMaven(options: [junitPublisher(disabled: true)]) { withMaven(options: [junitPublisher(disabled: true)]) {
sh "mvn versions:set -B -DnewVersion=${env.BRANCH_NAME}.GRESHAM-SNAPSHOT" sh "mvn versions:set -B -DnewVersion=${env.BRANCH_NAME}.GRESHAM-SNAPSHOT"
sh "mvn -N -B versions:update-child-modules" 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 -B -V -U -T4 clean deploy -DaltSnapshotDeploymentRepository=snapshots::default::https://nexus.greshamtech.com/repository/thirdparty-maven-snapshots/"
} }
} }
} }
post { post {
success { success {
junit '**/target/surefire-reports/**/*.xml' junit '**/target/surefire-reports/**/*.xml'
} }
} }
} }
stage ('Bump Development Version') { stage ('Bump Development Version') {
@ -113,15 +113,15 @@ pipeline {
steps { steps {
script { script {
sh "mvn versions:set -DnewVersion=${NEW_VERSION}-SNAPSHOT --batch-mode" sh "mvn versions:set -DnewVersion=${NEW_VERSION}-SNAPSHOT --batch-mode"
sh "git commit --all --message 'New Development Version $NEW_VERSION-SNAPSHOT'" sh "git commit --all --message 'New Development Version $NEW_VERSION-SNAPSHOT'"
sh "git push origin HEAD:${BRANCH_NAME}" sh "git push origin HEAD:${BRANCH_NAME}"
} }
} }
} }
} }
post { post {
always { always {
deleteDir() deleteDir()
} }
} }
} }