mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-03-01 17:40:48 +00:00
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
2aa8f9131d
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@ -63,8 +63,9 @@ pipeline {
|
|||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps { script {
|
steps { script {
|
||||||
dir("spiffworkflow-${params.COMPONENT}") {
|
dir("spiffworkflow-${params.COMPONENT}") {
|
||||||
|
/* Tag and Commit is combined to avoid clashes of parallel builds. */
|
||||||
image = docker.build(
|
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)}' ."
|
"--label=commit='${env.GIT_COMMIT.take(8)}' ."
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user