jenkins-community-slave: verify HTTPS certificate in head() request

Fixes a warning:

/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made to host 'build.ffh.zone'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
This commit is contained in:
Matthias Schiffer 2020-05-30 02:24:16 +02:00
parent 22847e4986
commit e79124adc7
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -70,7 +70,7 @@ if os.environ.get('SLAVE_SECRET') is None:
def master_ready(url):
try:
r = requests.head(url, verify=False, timeout=None)
r = requests.head(url, timeout=None)
return r.status_code == requests.codes.ok
except:
return False