Add SSL verification for DLRN actions

In downstream build-test-packages is failing on Task
: Run DLRN because with [SSL: CERTIFICATE_VERIFY_FAILED]

Exporting correct cert before running DLRN actions for downstream case
based on condition if OS is rhel.

Change-Id: I7c27d21a565b5672d0a455f55c9a7f4a4231c1d6
This commit is contained in:
Daniel Pawlik 2022-02-15 14:36:15 +01:00 committed by Sandeep Yadav
parent a8a4ab00c1
commit c8f69bf599
1 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,9 @@ export PKG={{ project_name_mapped.stdout }}
{% else %}
export PKG="{{ artg_rdo_packages|join(' --package-name ') }}"
{% endif %}
{% if ansible_distribution|lower == "redhat" %}
export REQUESTS_CA_BUNDLE=/etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt
{% endif %}
while true; do
dlrn --config-file projects.ini --head-only --package-name $PKG --local \