X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fpacker-build.sh;h=73e74965425ec20264b29e5c74c3b2354f59941d;hb=b9eb4581940562effcf67863704a3ec2c47ceca0;hp=3349a723374af0c7f5f7d3c1115b4a1c5e08e592;hpb=7d4c69662eb5a746f1cb286b77730aeb394d6ac2;p=releng%2Fglobal-jjb.git diff --git a/shell/packer-build.sh b/shell/packer-build.sh index 3349a723..73e74965 100644 --- a/shell/packer-build.sh +++ b/shell/packer-build.sh @@ -63,12 +63,13 @@ fi set +x packer.io build -color=false \ + -only "${PACKER_BUILDER}" \ -var-file="$CLOUDENV" \ -var-file="$platform_file" \ "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}')