[CI] Move notifyOnError to fix in-progress alerts for ciGroups (#82506)

This commit is contained in:
Brian Seeders 2020-11-04 10:45:12 -05:00 committed by GitHub
parent e683ece777
commit 9bb8a410db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,16 +109,16 @@ def withFunctionalTestEnv(List additionalEnvs = [], Closure closure) {
def functionalTestProcess(String name, Closure closure) {
return {
withFunctionalTestEnv(["JOB=${name}"], closure)
notifyOnError {
withFunctionalTestEnv(["JOB=${name}"], closure)
}
}
}
def functionalTestProcess(String name, String script) {
return functionalTestProcess(name) {
notifyOnError {
retryable(name) {
runbld(script, "Execute ${name}")
}
retryable(name) {
runbld(script, "Execute ${name}")
}
}
}