Some of the projects could have README or .txt file
which should be excluded, without which packer validate
would fail.
Change-Id: I6cc388a851ae2731a113d47e3719da7edf519c63
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
export PATH="${WORKSPACE}/bin:$PATH"
cd packer
-varfiles=(../packer/vars/*)
-templates=(../packer/templates/*)
+varfiles=(../packer/vars/*.json)
+templates=(../packer/templates/*.json)
for varfile in "${varfiles[@]}"; do
- [[ "${varfile##*/}" =~ ^(cloud-env.*)$ ]] && continue
for template in "${templates[@]}"; do
export PACKER_LOG="yes" && \
export PACKER_LOG_PATH="$PACKER_LOGS_DIR/packer-validate-${varfile##*/}-${template##*/}.log" && \