Validate only template/platform that is built 00/12000/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 26 Jul 2018 02:25:44 +0000 (22:25 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 26 Jul 2018 02:26:55 +0000 (22:26 -0400)
No point validating every combination of template/platform in a
merge job that is only interested in building a single combo.

Change-Id: I0ad760b3247ac18aba79a9bca25d887e09b987fa
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/lf-ci-jobs.yaml
shell/packer-build.sh

index 0c2ae33..70c662c 100644 (file)
     #####################
 
     builders:
-      - lf-infra-packer-validate:
-          packer-cloud-settings: '{packer-cloud-settings}'
-          packer-version: '{packer-version}'
       - lf-infra-packer-build:
           packer-cloud-settings: '{packer-cloud-settings}'
           packer-version: '{packer-version}'
index 34c4014..1caca8e 100644 (file)
@@ -32,6 +32,10 @@ fi
 
 export PACKER_LOG="yes"
 export PACKER_LOG_PATH="$PACKER_BUILD_LOG"
+packer.io validate \
+    -var-file="$CLOUDENV" \
+    -var-file="$platform_file" \
+    "templates/$PACKER_TEMPLATE.json"
 packer.io build -color=false \
     -var-file="$CLOUDENV" \
     -var-file="$platform_file" \