Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

mark build as unstable when UI tests failed using Jenkins plugin Text…

… Finder instead of exit with 1 to force Jenkins to fail a build
  • Loading branch information...
commit 91736fa8887c395fff9f1c2971e6c9c428164e07 1 parent 73bf192
Sven Jansen authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 integration_testing.sh
View
5 integration_testing.sh
@@ -81,8 +81,9 @@ echo $RESULT_IPHONE
if [ $RESULT_IPAD -ne 0 ] || [ $RESULT_IPHONE -ne 0 ]
then
echo "some UI tests failed!"
-# exit this script with 1 to tell Jenkins that this build didn't complete successfully
-exit 1
+# if you like to mark this build as unstable when tests failed, just print an error and use the Text Finder plugin in Jenkins to search for this string.
+# Alternatively you can use exit 1 to tell Jenkins that this build didn't complete successfully
+echo "UITESTS FAILED!" #exit 1
fi
exit 0
Please sign in to comment.
Something went wrong with that request. Please try again.