Merge pull request #265 from sartography/ci/fix-parallel-builds
ci: add deploy tag to commit to avoid race conditions
This commit is contained in:
commit
50a76cf5d7
|
@ -63,8 +63,9 @@ pipeline {
|
|||
stage('Build') {
|
||||
steps { script {
|
||||
dir("spiffworkflow-${params.COMPONENT}") {
|
||||
/* Tag and Commit is combined to avoid clashes of parallel builds. */
|
||||
image = docker.build(
|
||||
"${params.DOCKER_NAME}:${env.GIT_COMMIT.take(8)}",
|
||||
"${params.DOCKER_NAME}:${params.DOCKER_TAG}-${env.GIT_COMMIT.take(8)}",
|
||||
"--label=commit='${env.GIT_COMMIT.take(8)}' ."
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue