18 lines
No EOL
691 B
Groovy
18 lines
No EOL
691 B
Groovy
//To be called by test master jobs, Evaluates the results of a lower meta build to identify if is passed of failed so that it will ripple up the stack.
|
|
|
|
def CheckForTestFailures(TestObject) {
|
|
if (TestObject.result == 'UNSTABLE') {
|
|
unstable("Tests Failed ${TestObject.getProjectName()}")
|
|
}
|
|
else if (TestObject.result == 'SUCCESS') {
|
|
echo("Tests Passed ${TestObject.getProjectName()}")
|
|
} else {
|
|
error("Tests Job ${TestObject.getProjectName()} Failure with result ${TestObject.result}! Investigate Job/Slave Setup")
|
|
}
|
|
}
|
|
|
|
|
|
//Setup like a model where you can return yourself allow access to methods and objects contained
|
|
testUtils = this;
|
|
|
|
return this; |