From: Anil Belur Date: Fri, 30 Jun 2023 04:53:22 +0000 (+1000) Subject: Fix: Add target filename for config file X-Git-Tag: v0.88.1^0 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F87%2F71887%2F1;p=releng%2Fglobal-jjb.git Fix: Add target filename for config file 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 --- diff --git a/jjb/lf-macros.yaml b/jjb/lf-macros.yaml index 667e75b7..bf76f3b0 100644 --- a/jjb/lf-macros.yaml +++ b/jjb/lf-macros.yaml @@ -134,6 +134,7 @@ - config-file-provider: files: - file-id: "{packer-cloud-settings}" + target: "$HOME/.config/jenkins_jobs/cloud-env.pkrvars.hcl" variable: CLOUDENV - inject: properties-content: | @@ -164,6 +165,7 @@ - config-file-provider: files: - file-id: "{packer-cloud-settings}" + target: "$HOME/.config/jenkins_jobs/cloud-env.pkrvars.hcl" variable: CLOUDENV - inject: properties-content: | diff --git a/releasenotes/notes/update-packer-macros-f19cc00ed8615018.yaml b/releasenotes/notes/update-packer-macros-f19cc00ed8615018.yaml new file mode 100644 index 00000000..7caa31cd --- /dev/null +++ b/releasenotes/notes/update-packer-macros-f19cc00ed8615018.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Pass target file where the config file should be created. + New version of packer accepts only .json or .hcl extension filenames.