From: Anil Belur Date: Sat, 23 Jan 2021 02:24:04 +0000 (+0000) Subject: Merge "Revert "Remove the -only CLI option for packer build"" X-Git-Tag: v0.60.3^0 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=b0de8e76ba8c4e2cacbef206d7864e856b1ffc1d;hp=15cf0ab6b637b7b011b8316a43f88a0946a86d40;p=releng%2Fglobal-jjb.git Merge "Revert "Remove the -only CLI option for packer build"" --- diff --git a/releasenotes/notes/remove-packer-build-only-flag-2b5a53cf34dc9c6d.yaml b/releasenotes/notes/remove-packer-build-only-flag-2b5a53cf34dc9c6d.yaml deleted file mode 100644 index 78ead642..00000000 --- a/releasenotes/notes/remove-packer-build-only-flag-2b5a53cf34dc9c6d.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -fixes: - - | - Remove the -only CLI option for packer build - - The #CR 90dd675df482a8 submitted with common-packer v0.7.0 - fails to build packer jobs because of a bug in the packer build CLI. - - The `-only` option packer build CLI does not set the cloud provider - name/type as per the documentation. The alternative is to use an environment - variable that is passed through the packer job and can be reference in the - packer templates. - - Ref: - Github Issue: https://github.com/hashicorp/packer/issues/10495 diff --git a/shell/packer-build.sh b/shell/packer-build.sh index 1a44e4fd..73e74965 100644 --- a/shell/packer-build.sh +++ b/shell/packer-build.sh @@ -63,6 +63,7 @@ fi set +x packer.io build -color=false \ + -only "${PACKER_BUILDER}" \ -var-file="$CLOUDENV" \ -var-file="$platform_file" \ "templates/$PACKER_TEMPLATE.json"