Propagating branch_override variable into DLRN build role

The role was previously set to handle only branch names directly received from
Zuul or preset default. This could lead to role checking out incorrect distgit
repos in cases when the name of the branch in upstream repo differs significantly
from that in the distgit repo.

This change will allow per job override of the behavior, using the 'branch_override' var.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I3c6a8612de60b201b9f4ac1070f52d4debe37eb5
This commit is contained in:
Jiri Podivin 2022-05-18 09:38:09 +02:00
parent 0c2be73411
commit b95f8023c0
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
---
- name: Set release name
set_fact:
artg_release: "{{ artg_change.branch | replace('stable/', '') }}"
artg_release: "{{ job.branch_override | default(artg_change.branch) | replace('stable/', '') }}"
- name: print out the release name
debug: