Minimize publish job regex
The previous ansible step is already fetching the complete charm name. Adding `.*$` is creating issues as charm sharing a similar name will be slurped by this job, making the publication process work twice. Example of a charm sharing a similar name: cinder-volume and cinder-volume-ceph. Change-Id: I3978fdd2f91534f088c02218e9569cf5626abcaf Signed-off-by: Guillaume Boutry <guillaume.boutry@canonical.com>
This commit is contained in:
parent
32dffdbc1a
commit
8b8a90e6a4
@ -12,7 +12,7 @@
|
||||
|
||||
- name: Get relevant charm build jobs
|
||||
set_fact:
|
||||
relevant_charm_build_jobs: "{{ build_output.json | selectattr('job_name', 'match', '^charm-build-'+ charm_name +'.*$') | map(attribute='job_name') | list }}"
|
||||
relevant_charm_build_jobs: "{{ build_output.json | selectattr('job_name', 'match', '^charm-build-'+ charm_name +'$') | map(attribute='job_name') | list }}"
|
||||
|
||||
- name: Print relevant build jobs
|
||||
debug:
|
||||
|
Loading…
x
Reference in New Issue
Block a user