Set packer builder type with env variable 59/66559/1 v0.7.3
authorAnil Belur <abelur@linuxfoundation.org>
Thu, 21 Jan 2021 08:32:12 +0000 (18:32 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Thu, 21 Jan 2021 08:46:03 +0000 (18:46 +1000)
commit8041971ef211709579f919bdeb9a77fef0a29433
treeea8442510328d21ac64994428bf2953d85289180
parentcc035619ac1673a5b5ea2f6bfb843eac75ea4a9d
Set packer builder type with env variable

Using the -only CLI option for packer build does not work as
expected. The #CR 90dd675df482a8 (global-jjb) 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.

The CR cc035619ac16 missed including the changes to the other
templates.

Issue: https://github.com/hashicorp/packer/issues/10495
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: I14976aa77312a3d887d30b7d6e2cc32ab8073b72
releasenotes/notes/set-packer-builder-type-with-env-var-for-docker-win-b50a519f95603e2a.yaml [new file with mode: 0644]
templates/docker.json
templates/windows-builder.json