Unverified Commit f87e98e4 authored by Hongzhi (Steve), Chen's avatar Hongzhi (Steve), Chen Committed by GitHub
Browse files

Update Jenkins response status (#5342)


Co-authored-by: default avatarUbuntu <ubuntu@ip-172-31-28-63.ap-northeast-1.compute.internal>
parent 36065bfd
......@@ -11,7 +11,8 @@ job_link = os.environ["BUILD_URL"]
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"]:
# https://javadoc.jenkins.io/plugin/pipeline-graph-analysis/org/jenkinsci/plugins/workflow/pipelinegraphanalysis/GenericStatus.html
if v["status"] in ["FAILED", "ABORTED", "NOT_EXECUTED"]:
status = "❌ CI test failed in Stage [{}].".format(v["name"])
break
......
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