"vscode:/vscode.git/clone" did not exist on "eb43489397daf5506494d2cc5eaf7d7ff9dbefff"
Unverified Commit 56614f32 authored by Rhett Ying's avatar Rhett Ying Committed by GitHub
Browse files

[BugFix] fix job status in master CI (#3962)

* [BugFix] fix job status in master CI

* finalize
parent 529fd107
......@@ -490,10 +490,12 @@ pipeline {
def comment = sh(returnStdout: true, script: "python3 status.py").trim()
echo(comment)
if ((env.BRANCH_NAME).startsWith('PR-')) {
pullRequest.comment(comment)
}
}
}
}
node('windows') {
bat(script: "rmvirtualenv ${BUILD_TAG}", returnStatus: true)
}
......
......@@ -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
......
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