|
@ -16,7 +16,6 @@ pipeline { |
|
|
stage('Build') { |
|
|
stage('Build') { |
|
|
steps { |
|
|
steps { |
|
|
sh "./gradlew -Pversion='${REVISION}' testClasses" |
|
|
sh "./gradlew -Pversion='${REVISION}' testClasses" |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
script { |
|
|
script { |
|
|
def commitId = sh(returnStdout: true, script: 'git rev-parse --short HEAD').trim() |
|
|
def commitId = sh(returnStdout: true, script: 'git rev-parse --short HEAD').trim() |
|
@ -25,6 +24,7 @@ pipeline { |
|
|
REVISION = "${env.BRANCH_NAME}-${commitDate}.${commitId}" |
|
|
REVISION = "${env.BRANCH_NAME}-${commitDate}.${commitId}" |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
stage('Test') { |
|
|
stage('Test') { |
|
|
steps { |
|
|
steps { |
|
|