Merge "Fix gate script index issue"
This commit is contained in:
commit
8af53241e1
@ -13,6 +13,7 @@
|
|||||||
- hosts: primary
|
- hosts: primary
|
||||||
vars_files:
|
vars_files:
|
||||||
- vars/test-config.yaml
|
- vars/test-config.yaml
|
||||||
|
name: airshipctl_gate_runner
|
||||||
environment:
|
environment:
|
||||||
SOPS_IMPORT_PGP: "{{ airship_config_pgp }}"
|
SOPS_IMPORT_PGP: "{{ airship_config_pgp }}"
|
||||||
SOPS_PGP_FP_ENCRYPT: "{{ airship_config_pgp_fp1 }}"
|
SOPS_PGP_FP_ENCRYPT: "{{ airship_config_pgp_fp1 }}"
|
||||||
@ -29,7 +30,7 @@
|
|||||||
GCP_NETWORK_NAME: "ZGVmYXVsdA=="
|
GCP_NETWORK_NAME: "ZGVmYXVsdA=="
|
||||||
GCP_B64ENCODED_CREDENTIALS: "bjEtc3RhbmRhcmQtNA=="
|
GCP_B64ENCODED_CREDENTIALS: "bjEtc3RhbmRhcmQtNA=="
|
||||||
tasks:
|
tasks:
|
||||||
- name: "set default gate scripts"
|
- name: "set_default_gate_scripts"
|
||||||
set_fact:
|
set_fact:
|
||||||
gate_scripts_default:
|
gate_scripts_default:
|
||||||
- ./tools/deployment/21_systemwide_executable.sh
|
- ./tools/deployment/21_systemwide_executable.sh
|
||||||
|
@ -80,9 +80,9 @@ while true; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
SCRIPT_LIST=$(cat $ZUUL_JOBS_PATH | yq '.[9].job.vars.gate_scripts[]' -c -r)
|
SCRIPT_LIST=$(cat $ZUUL_JOBS_PATH | yq '.[] | select(.job.name == "airship-airshipctl-gate-script-runner") | .job.vars.gate_scripts[]' -c -r)
|
||||||
if [[ ! $SCRIPT_LIST ]]; then
|
if [[ ! $SCRIPT_LIST ]]; then
|
||||||
SCRIPT_LIST=$(cat $GATE_RUNNER_YAML_PATH | yq '.[0].tasks[0].set_fact.deploy_test_site_scripts_default[]' -c -r)
|
SCRIPT_LIST=$(cat $GATE_RUNNER_YAML_PATH | yq '.[]| select (.name=="airshipctl_gate_runner")| .tasks[]| select (.name=="set_default_gate_scripts")| .set_fact.gate_scripts_default[]' -c -r)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SKIP_LIST=$(echo ${SKIP_LIST//,/ })
|
SKIP_LIST=$(echo ${SKIP_LIST//,/ })
|
||||||
|
Loading…
Reference in New Issue
Block a user