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

[Misc] Treat aborted as failure in Jenkins. (#5361)


Co-authored-by: default avatarUbuntu <ubuntu@ip-172-31-28-63.ap-northeast-1.compute.internal>
parent 529b2662
...@@ -22,7 +22,7 @@ if args.result == "SUCCESS": ...@@ -22,7 +22,7 @@ if args.result == "SUCCESS":
status_output = "✅ CI test succeeded." status_output = "✅ CI test succeeded."
elif args.result == "NOT_BUILT": elif args.result == "NOT_BUILT":
status_output = "⚪️ CI test cancelled due to overrun." status_output = "⚪️ CI test cancelled due to overrun."
elif args.result == "FAILURE": elif args.result in ["FAILURE", "ABORTED"]:
status_output == "❌ CI test failed." status_output == "❌ CI test failed."
JOB_LINK = os.environ["BUILD_URL"] JOB_LINK = os.environ["BUILD_URL"]
response = requests.get("{}wfapi".format(JOB_LINK), verify=False).json() response = requests.get("{}wfapi".format(JOB_LINK), verify=False).json()
......
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