This reverts commit
e0a9d10d3d6b488ed3a3b00050b34d9faee4a6f8.
Based on the input provided on the Gihub packer issue
hard-coded for our parser to be able to decode the rest of the config
properly."
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: If7162ced328d58b24ab9339f7e81d7dff76c90bb
:packer-version: Version of packer to use.
:platform: Build platform as found in the vars directory.
:template: Packer template to build as found in the templates directory.
- :packer-builder: builder type to use. ex: aws, openstack (default: openstack)
:Optional parameters:
:packer-cloud-settings: Cloud configuration file. Loaded on the build
server as CLOUDENV environment variable.
:packer-version: Version of packer to use.
- :packer-builder: builder type to use. ex: aws, openstack (default: openstack)
lf-infra-push-gerrit-patch
--------------------------
openstack: "{openstack}"
openstack-cloud: "{openstack-cloud}"
packer-cloud-settings: "{packer-cloud-settings}"
- packer-builder: "{packer-builder}"
packer-version: "{packer-version}"
- job-template:
variable: CLOUDENV
- inject:
properties-content: |
- PACKER_BUILDER={packer-builder}
PACKER_VERSION={packer-version}
- shell: !include-raw-escape:
- ../shell/packer-install.sh
+++ /dev/null
----
-fixes:
- - |
- Pass the builder type to verify jobs
-
- The default builder type must be passed to packer verify jobs. For
- packer jobs to run on aws, set the `packer-builder: aws` in downstream
- CI-management repositories.
PACKER_BUILD_LOG="$PACKER_LOGS_DIR/packer-build.log"
mkdir -p "$PACKER_LOGS_DIR"
export PATH="${WORKSPACE}/bin:$PATH"
-export PACKER_BUILDER=${PACKER_BUILDER:-openstack}
cd packer
PACKER_LOGS_DIR="$WORKSPACE/archives/packer"
mkdir -p "$PACKER_LOGS_DIR"
export PATH="${WORKSPACE}/bin:$PATH"
-export PACKER_BUILDER=${PACKER_BUILDER:-openstack}
cd packer
varfiles=(vars/*.json common-packer/vars/*.json)