Revert "Pass the builder type to verify jobs" 93/66593/1
authorAnil Belur <abelur@linuxfoundation.org>
Sat, 23 Jan 2021 01:37:14 +0000 (11:37 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Sat, 23 Jan 2021 02:06:14 +0000 (12:06 +1000)
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

docs/jjb/lf-macros.rst
jjb/lf-ci-jobs.yaml
jjb/lf-macros.yaml
releasenotes/notes/pass-packer-builder-type-to-verify-jobs-396e0f450143f6c1.yaml [deleted file]
shell/packer-build.sh
shell/packer-validate.sh

index 955e224..1ea2cfa 100644 (file)
@@ -127,7 +127,6 @@ Run `packer build` to build system images.
     :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:
 
@@ -146,7 +145,6 @@ Run ``packer validate`` to verify packer configuration.
     :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
 --------------------------
index 689892b..39ebc8f 100644 (file)
           openstack: "{openstack}"
           openstack-cloud: "{openstack-cloud}"
           packer-cloud-settings: "{packer-cloud-settings}"
-          packer-builder: "{packer-builder}"
           packer-version: "{packer-version}"
 
 - job-template:
index 9f74046..f5021d2 100644 (file)
               variable: CLOUDENV
       - inject:
           properties-content: |
-            PACKER_BUILDER={packer-builder}
             PACKER_VERSION={packer-version}
       - shell: !include-raw-escape:
           - ../shell/packer-install.sh
diff --git a/releasenotes/notes/pass-packer-builder-type-to-verify-jobs-396e0f450143f6c1.yaml b/releasenotes/notes/pass-packer-builder-type-to-verify-jobs-396e0f450143f6c1.yaml
deleted file mode 100644 (file)
index 530506e..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
----
-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.
index 4cb3df3..1a44e4f 100644 (file)
@@ -21,7 +21,6 @@ PACKER_LOGS_DIR="$WORKSPACE/archives/packer"
 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
 
index af766c3..61e1431 100644 (file)
@@ -19,7 +19,6 @@ set -eu -o pipefail
 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)