Pass target file where the config file should be created. Newer
version of packer accepts only .json or .hcl extension filenames.
Error:
Could not guess format of
/w/workspace/builder-packer-verify@tmp/config5102323344744095713tmp
A var file must be suffixed with `.hcl` or `.json`.'
Issue: RELENG-4764
Change-Id: Ief8b703246667c38c216ede6ac94e5d549cfe46b
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
- config-file-provider:
files:
- file-id: "{packer-cloud-settings}"
+ target: "$HOME/.config/jenkins_jobs/cloud-env.pkrvars.hcl"
variable: CLOUDENV
- inject:
properties-content: |
- config-file-provider:
files:
- file-id: "{packer-cloud-settings}"
+ target: "$HOME/.config/jenkins_jobs/cloud-env.pkrvars.hcl"
variable: CLOUDENV
- inject:
properties-content: |
--- /dev/null
+---
+fixes:
+ - |
+ Pass target file where the config file should be created.
+ New version of packer accepts only .json or .hcl extension filenames.