Fix jenkins ssl issue

Jenkins gate jobs are failing with ssl error[1].
Disabling certificate verification to fix the issue.

[1] https://jenkins-cloudsig-ci.apps.ocp.ci.centos.org/job/tripleo-quickstart-extras-gate-master-tripleo-ci-delorean-full-featureset052/218/artifact/collect_logs.txt

Change-Id: I4274445c0a1161bb14fd275870b5f307375b44fb
This commit is contained in:
Sandeep Yadav 2021-10-06 13:23:56 +05:30
parent 1ef936a088
commit 4e949d07b8

View File

@ -95,7 +95,7 @@ def get_details(host, change_id, branch, revision):
'''Get the details of a specific change'''
url = ''.join(['https://', host, '/changes/?q=change:', change_id])
try:
req = requests.get(url)
req = requests.get(url, verify=False)
req.raise_for_status()
except requests.exceptions.HTTPError:
return {'fail_msg': ''.join(['warning: failed to query change '
@ -120,7 +120,7 @@ def get_details(host, change_id, branch, revision):
url = ''.join(['https://', host, '/changes/', full_id,
'?o=ALL_REVISIONS&o=ALL_COMMITS'])
try:
req = requests.get(url)
req = requests.get(url, verify=False)
req.raise_for_status()
except requests.exceptions.HTTPError:
return {'fail_msg': ''.join(['warning: failed to fetch details of ',