: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)