Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
86656a6b
"git@developer.sourcefind.cn:OpenDAS/torchaudio.git" did not exist on "19c60a08a3ce51eaf74883a3952cb6fabad1ac0a"
Unverified
Commit
86656a6b
authored
Aug 31, 2022
by
Rhett Ying
Committed by
GitHub
Aug 31, 2022
Browse files
[CI] use https instead of http (#4488)
parent
b9290e8b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
Jenkinsfile
Jenkinsfile
+2
-2
tests/scripts/ci_report/report.py
tests/scripts/ci_report/report.py
+3
-3
tests/scripts/ci_report/status.py
tests/scripts/ci_report/status.py
+1
-1
No files found.
Jenkinsfile
View file @
86656a6b
...
...
@@ -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"
)
...
...
tests/scripts/ci_report/report.py
View file @
86656a6b
...
...
@@ -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
...
...
tests/scripts/ci_report/status.py
View file @
86656a6b
...
...
@@ -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'
]:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment