1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-14 11:57:37 +00:00

Use shorter git commit hash to avoid namespace length issues

This commit is contained in:
Ewout Prangsma 2018-02-22 11:12:55 +01:00
parent 91a6abe403
commit b234c279c5
No known key found for this signature in database
GPG key ID: 4DBAD380D93D0698

View file

@ -32,7 +32,7 @@ pipeline {
steps {
timestamps {
withEnv([
"IMAGETAG=${env.GIT_COMMIT}",
"IMAGETAG=${env.GIT_COMMIT,length=6}",
]) {
sh "make"
}
@ -42,10 +42,10 @@ pipeline {
stage('Test') {
steps {
timestamps {
lock("${params.TESTNAMESPACE}-${env.GIT_COMMIT}") {
lock("${params.TESTNAMESPACE}-${env.GIT_COMMIT,length=6}") {
withEnv([
"TESTNAMESPACE=${params.TESTNAMESPACE}-${env.GIT_COMMIT}",
"IMAGETAG=${env.GIT_COMMIT}",
"TESTNAMESPACE=${params.TESTNAMESPACE}-${env.GIT_COMMIT,length=6}",
"IMAGETAG=${env.GIT_COMMIT,length=6}",
"PUSHIMAGES=1",
]) {
sh "make run-tests"