Unverified Commit 86656a6b authored by Rhett Ying's avatar Rhett Ying Committed by GitHub
Browse files

[CI] use https instead of http (#4488)

parent b9290e8b
......@@ -582,10 +582,10 @@ pipeline {
docker.image('dgllib/dgl-ci-awscli:v220418').inside("--pull always --entrypoint=''") {
sh("rm -rf ci_tmp")
dir('ci_tmp') {
sh("curl -o cireport.log ${BUILD_URL}consoleText")
sh("curl -k -o cireport.log ${BUILD_URL}consoleText")
sh("curl -o report.py https://raw.githubusercontent.com/dmlc/dgl/master/tests/scripts/ci_report/report.py")
sh("curl -o status.py https://raw.githubusercontent.com/dmlc/dgl/master/tests/scripts/ci_report/status.py")
sh("curl -L ${BUILD_URL}wfapi")
sh("curl -k -L ${BUILD_URL}wfapi")
sh("cat status.py")
sh("pytest --html=report.html --self-contained-html report.py || true")
sh("aws s3 sync ./ s3://dgl-ci-result/${JOB_NAME}/${BUILD_NUMBER}/${BUILD_ID}/logs/ --exclude '*' --include '*.log' --acl public-read --content-type text/plain")
......
......@@ -27,7 +27,7 @@ JENKINS_STATUS_MAPPING = {
assert "BUILD_URL" in os.environ, "Are you in the Jenkins environment?"
job_link = os.environ["BUILD_URL"]
response = requests.get('{}wfapi'.format(job_link)).json()
response = requests.get('{}wfapi'.format(job_link), verify=False).json()
domain = '{uri.scheme}://{uri.netloc}/'.format(uri=urlparse(job_link))
stages = response["stages"]
......@@ -37,13 +37,13 @@ nodes_dict = {}
def get_jenkins_json(path):
return requests.get(urljoin(domain, path)).json()
return requests.get(urljoin(domain, path), verify=False).json()
for stage in stages:
link = stage['_links']['self']['href']
stage_name = stage['name']
res = requests.get(urljoin(domain, link)).json()
res = requests.get(urljoin(domain, link), verify=False).json()
nodes = res['stageFlowNodes']
for node in nodes:
nodes_dict[node['id']] = node
......
......@@ -6,7 +6,7 @@ BUILD_ID = os.getenv("BUILD_ID")
COMMIT = os.getenv("GIT_COMMIT")
job_link = os.environ["BUILD_URL"]
response = requests.get('{}wfapi'.format(job_link)).json()
response = requests.get('{}wfapi'.format(job_link), verify=False).json()
status = "✅ CI test succeeded"
for v in response['stages']:
if v['status'] in ['FAILED', 'ABORTED']:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment