X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fpacker-build.sh;h=1a44e4fd0abc5913204152bd7ef70c905306bf0b;hb=cfe6494e335f277155582ba564bdceae1ee043fd;hp=3349a723374af0c7f5f7d3c1115b4a1c5e08e592;hpb=0f9b36b3c10d4ae559b96b2bb61676e164d89ca0;p=releng%2Fglobal-jjb.git diff --git a/shell/packer-build.sh b/shell/packer-build.sh index 3349a723..1a44e4fd 100644 --- 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 -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}')