diff options
-rwxr-xr-x | jjb/securedlab/check-jinja2.sh | 9 | ||||
-rw-r--r-- | jjb/securedlab/check-jinja2.yml | 11 |
2 files changed, 11 insertions, 9 deletions
diff --git a/jjb/securedlab/check-jinja2.sh b/jjb/securedlab/check-jinja2.sh new file mode 100755 index 000000000..be4d951ed --- /dev/null +++ b/jjb/securedlab/check-jinja2.sh @@ -0,0 +1,9 @@ +#!/bin/bash +set +x +set -o errexit +for lab_configs in $(find labs/ -name 'pod.yaml' | grep -v zte); do + while IFS= read -r jinja_templates; do + echo "./utils/generate_config.py -y $lab_configs -j $jinja_templates" + ./utils/generate_config.py -y $lab_configs -j $jinja_templates + done < <(find installers/ -name '*.jinja2') +done diff --git a/jjb/securedlab/check-jinja2.yml b/jjb/securedlab/check-jinja2.yml index f6bb066cb..1e85536e7 100644 --- a/jjb/securedlab/check-jinja2.yml +++ b/jjb/securedlab/check-jinja2.yml @@ -76,12 +76,5 @@ - builder: name: check-jinja builders: - - shell: | - set +x - set -o errexit - for lab_configs in $(find labs/ -name 'pod.yaml' | grep -v zte); do - while IFS= read -r jinja_templates; do - echo "./utils/generate_config.py -y $lab_configs -j $jinja_templates" - ./utils/generate_config.py -y $lab_configs -j $jinja_templates - done < <(find installers/ -name '*.jinja2') - done + - shell: + !include-raw-escape: ./check-jinja2.sh |