ci-dockerfiles-*: Refactor build name/version preparation
Share/reuse the code to keep behavior consistent.
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: Iae6b9e7a053eb52c439e67566d09368ea0e610b3
diff --git a/ci-dockerfiles-deployment.yaml b/ci-dockerfiles-deployment.yaml
index 0ecf0ef..23ce2d6 100644
--- a/ci-dockerfiles-deployment.yaml
+++ b/ci-dockerfiles-deployment.yaml
@@ -66,9 +66,8 @@
credential-id: DOCKER_AUTH
variable: DOCKER_AUTH
builders:
- - shell: |
- #!/bin/bash -e
- echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt
+ - shell:
+ !include-raw: ci-dockerfiles-deployment/build-version.sh
- build-name-setter:
name: 'version.txt'
file: true