Allow dlrn_hash_tag* vars to be overridden

When running the run-v3 playbook with the reproducer
workflow, a specific dlrn_hash_tag and newest tag
need to be passed to the job. This can be done in
featureset_override - if allowed in the playbook.

Also allows for getting a ready releases.sh file to use
to ensure a static dlrn hash.

Change-Id: I6201cd62e7d314fb8b53a104563c11c28ed8f2a2
This commit is contained in:
Ronelle Landy 2018-12-04 14:30:36 -05:00
parent 7333a6fc8f
commit 661ad3ed6c
2 changed files with 20 additions and 6 deletions

View File

@ -16,6 +16,8 @@
- 'standalone_container_cli'
- 'test_white_regex'
- 'tempest_workers'
- 'dlrn_hash_tag'
- 'dlrn_hash_tag_newest'
fail:
msg: "ERROR: {{ item }} is not overridable."
when: item not in "{{ allowed_overrides }}"
@ -71,6 +73,14 @@
dest: "{{ tripleo_root }}/tripleo-ci/scripts/oooq_common_functions.sh"
force: yes
- name: render ready releases.sh file
copy:
content: "{{ ready_releases_file }}"
dest: "{{ workspace }}/logs/releases.sh"
mode: 0644
force: yes
when: ready_releases_file is defined
- shell:
cmd: |
set -e

View File

@ -125,12 +125,16 @@ EMIT_RELEASES_EXTRA_ARGS="$EMIT_RELEASES_EXTRA_ARGS --is-periodic"
if [[ -f "$RELEASES_SCRIPT" ]] && [[ {{ featureset }} =~ 010|011|037|047|050|056 ]]; then
python $RELEASES_SCRIPT \
--stable-release ${STABLE_RELEASE:-"master"} \
--featureset-file $TRIPLEO_ROOT/tripleo-quickstart/config/general_config/$(basename {{ job_featureset_file }}) \
--output-file $RELEASES_FILE_OUTPUT \
--log-file $RELEASES_SCRIPT_LOGFILE \
$EMIT_RELEASES_EXTRA_ARGS
if [[ -f "$RELEASES_FILE_OUTPUT" ]]; then
echo "Importing ready releases.sh file - skipping releases.sh file generation."
else
python $RELEASES_SCRIPT \
--stable-release ${STABLE_RELEASE:-"master"} \
--featureset-file $TRIPLEO_ROOT/tripleo-quickstart/config/general_config/$(basename {{ job_featureset_file }}) \
--output-file $RELEASES_FILE_OUTPUT \
--log-file $RELEASES_SCRIPT_LOGFILE \
$EMIT_RELEASES_EXTRA_ARGS
fi
fi