Code Review
/
releng
/
global-jjb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Pin importlib-resources version to <2.0.0
[releng/global-jjb.git]
/
shell
/
packer-build.sh
diff --git
a/shell/packer-build.sh
b/shell/packer-build.sh
index
3349a72
..
1a44e4f
100644
(file)
--- a/
shell/packer-build.sh
+++ b/
shell/packer-build.sh
@@
-68,7
+68,7
@@
packer.io build -color=false \
"templates/$PACKER_TEMPLATE.json"
# Extract image name from log and store value in the downstream job
"templates/$PACKER_TEMPLATE.json"
# Extract image name from log and store value in the downstream job
-if [[ ${UPDATE_CLOUD_IMAGE} ]]; then
+if [[ ${UPDATE_CLOUD_IMAGE}
== 'true'
]]; then
NEW_IMAGE_NAME=$(grep -P '(\s+.*image: )(ZZCI\s+.*\d+-\d+\.\d+)' \
"$PACKER_BUILD_LOG" | awk -F': ' '{print $4}')
NEW_IMAGE_NAME=$(grep -P '(\s+.*image: )(ZZCI\s+.*\d+-\d+\.\d+)' \
"$PACKER_BUILD_LOG" | awk -F': ' '{print $4}')