31 lines
913 B
YAML
31 lines
913 B
YAML
---
|
|
- name: Set ci_branch from regular Zuul branch
|
|
set_fact:
|
|
ci_branch: "{{ zuul.branch | regex_replace('(stable|cloudsig)/', '') }}"
|
|
when: zuul is defined
|
|
|
|
- name: Set ci_branch from branch_override variable
|
|
set_fact:
|
|
ci_branch: "{{ branch_override | regex_replace('(stable|cloudsig)/', '') }}"
|
|
when: branch_override is defined
|
|
|
|
- name: Set ci_branch from release variable (in periodic)
|
|
set_fact:
|
|
ci_branch: "{{ release }}"
|
|
when: release is defined
|
|
|
|
- name: Set ci_branch for Downstream
|
|
set_fact:
|
|
ci_branch: "{{ osp_branch }}"
|
|
when: osp_branch is defined
|
|
|
|
- name: Set override_repos for buildcontainers_override_repos
|
|
set_fact:
|
|
override_repos: "{{ buildcontainers_override_repos | default('') }}"
|
|
|
|
- name: Fail if we did not set ci_branch fact
|
|
fail:
|
|
msg: >-
|
|
Failed to get ci_branch from zuul.branch or branch_override or release
|
|
when: ci_branch is not defined
|