From 10a40a3480b3cc200f909dd19aee1beb69878573 Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Wed, 25 Jul 2018 22:25:44 -0400 Subject: [PATCH] Validate only template/platform that is built 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 --- jjb/lf-ci-jobs.yaml | 3 --- shell/packer-build.sh | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/jjb/lf-ci-jobs.yaml b/jjb/lf-ci-jobs.yaml index 0c2ae334..70c662c5 100644 --- a/jjb/lf-ci-jobs.yaml +++ b/jjb/lf-ci-jobs.yaml @@ -950,9 +950,6 @@ ##################### 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}' diff --git a/shell/packer-build.sh b/shell/packer-build.sh index 34c4014a..1caca8e3 100644 --- a/shell/packer-build.sh +++ b/shell/packer-build.sh @@ -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" \ -- 2.16.6