This is a follow up for #163.
As it turned out, in case of a sidetag repo, the repo.url is the url to the repo file, not directly the repo base url.
So this PR parses out the repo url from the repo file.
Tested via:
❯ ansible -c local -m debug -e repo_url='https://centos.softwarefactory-project.io/logs/14/14/ad79fadaffb361d47f36a0c7597d449702a832b8/check/mock-build/bb0a33c/sidetag.repo' -a "msg={{ lookup('ansible.builtin.url', repo_url) | regex_search('baseurl=([^,]+)', '\\1') }}" localhost localhost | SUCCESS => { "msg": [ "https://kojihub.stream.centos.org/kojifiles/repos/c9s-build-side-1485-stack-gate/latest/x86_64/" ] }
Signed-off-by: Miroslav Vadkerti mvadkert@redhat.com
@fbo heya, could you look at this one, if it matches your Ansible eye? :)
We cannot test it with PR as secrets involved ...
Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci https://fedora.softwarefactory-project.io/zuul/buildset/2bc0b38f5d264018a98d0c5acb78d783
Metadata Update from @mvadkert: - Request assigned
recheck
Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci https://fedora.softwarefactory-project.io/zuul/buildset/3236f52fcde14bc4aad7c16e6232a12c
Build succeeded. https://fedora.softwarefactory-project.io/zuul/buildset/5c757d5cb09c40f4ad200886f864bbad
LGTM
Feel free to add the "gateit" label to merge the change
Metadata Update from @mvadkert: - Pull-request tagged with: gateit
Build succeeded (gate pipeline). https://fedora.softwarefactory-project.io/zuul/buildset/bce16416d4284cfdb98ac0e457925503
Pull-Request has been merged by zuul
This is a follow up for #163.
As it turned out, in case of a sidetag repo, the repo.url
is the url to the repo file, not directly the repo base url.
So this PR parses out the repo url from the repo file.
Tested via:
Signed-off-by: Miroslav Vadkerti mvadkert@redhat.com