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:
Guillaume Boutry 2025-02-28 22:31:24 +01:00
parent 32dffdbc1a
commit 8b8a90e6a4
No known key found for this signature in database
GPG Key ID: 0DD77DC1796E98CD

View File

@ -12,7 +12,7 @@
- name: Get relevant charm build jobs - name: Get relevant charm build jobs
set_fact: 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 - name: Print relevant build jobs
debug: debug: