Automatically set ci_testing flag

In the event of testing in the OpenStack CI system, we need to
operate differently with repositories as dependent changes may be
in other repositories.
This commit is contained in:
Julia Kreger 2015-04-21 12:08:48 -04:00
parent b6e0daa9ee
commit 33b2e27b05

View File

@ -5,8 +5,14 @@
sudo: yes
gather_facts: yes
pre_tasks:
- set_fact: baremetal_csv_file="/tmp/baremetal.csv"
- name: "Set default baremetal.csv file if not already defined"
set_fact:
baremetal_csv_file: "/tmp/baremetal.csv"
when: baremetal_csv_file is not defined
- name: "Set ci_testing flag if a list of changes are found in the environment variables"
set_fact:
ci_testing: true
when: lookup('env', 'ZUUL_CHANGES') != ""
roles:
- role: bifrost-create-vm-nodes
- role: ironic-install