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
56614f32
Unverified
Commit
56614f32
authored
Apr 29, 2022
by
Rhett Ying
Committed by
GitHub
Apr 29, 2022
Browse files
[BugFix] fix job status in master CI (#3962)
* [BugFix] fix job status in master CI * finalize
parent
529fd107
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Jenkinsfile
Jenkinsfile
+3
-1
tests/scripts/ci_report/status.py
tests/scripts/ci_report/status.py
+1
-1
No files found.
Jenkinsfile
View file @
56614f32
...
...
@@ -490,7 +490,9 @@ pipeline {
def
comment
=
sh
(
returnStdout:
true
,
script:
"python3 status.py"
).
trim
()
echo
(
comment
)
pullRequest
.
comment
(
comment
)
if
((
env
.
BRANCH_NAME
).
startsWith
(
'PR-'
))
{
pullRequest
.
comment
(
comment
)
}
}
}
}
...
...
tests/scripts/ci_report/status.py
View file @
56614f32
...
...
@@ -8,7 +8,7 @@ job_link = os.environ["BUILD_URL"]
response
=
requests
.
get
(
'{}wfapi'
.
format
(
job_link
)).
json
()
status
=
"✅ CI test succeeded"
for
v
in
response
[
'stages'
]:
if
'FAILED'
in
v
[
'status
'
]:
if
v
[
'status'
]
not
in
[
'SUCCESS'
,
'IN_PROGRESS
'
]:
status
=
"❌ CI test failed in Stage [{}]."
.
format
(
v
[
'name'
])
break
...
...
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