Browse Source

adjust Jenkinsfile

pr-readme
Steffen Nitschke 3 years ago
parent
commit
96bf9b5396
  1. 10
      Jenkinsfile

10
Jenkinsfile

@ -16,13 +16,13 @@ pipeline {
stage('Build') {
steps {
sh "./gradlew -Pversion='${REVISION}' testClasses"
}
script {
def commitId = sh(returnStdout: true, script: 'git rev-parse --short HEAD').trim()
def commitDate = sh(returnStdout: true, script: 'git --no-pager show -s --format=%cd --date=short HEAD').trim()
script {
def commitId = sh(returnStdout: true, script: 'git rev-parse --short HEAD').trim()
def commitDate = sh(returnStdout: true, script: 'git --no-pager show -s --format=%cd --date=short HEAD').trim()
REVISION = "${env.BRANCH_NAME}-${commitDate}.${commitId}"
REVISION = "${env.BRANCH_NAME}-${commitDate}.${commitId}"
}
}
}

Loading…
Cancel
Save