From: Thanh Ha Date: Thu, 26 Jul 2018 02:25:44 +0000 (-0400) Subject: Validate only template/platform that is built X-Git-Tag: v0.23.0~2^2 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F00%2F12000%2F1;p=releng%2Fglobal-jjb.git 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 --- 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" \