aboutsummaryrefslogtreecommitdiff
path: root/tcwgweb.sh
diff options
context:
space:
mode:
authorRob Savoye <rob.savoye@linaro.org>2014-09-18 15:53:52 -0700
committerRob Savoye <rob.savoye@linaro.org>2014-09-18 15:53:52 -0700
commit417e8370af87f6e3d127c5823d2ea52523e94720 (patch)
tree6fbafe3ea4382a18c70d971c49843260c4c6a9ce /tcwgweb.sh
parent52d170824d6af51d5ca3c532a33d6348a968d176 (diff)
return a string Jenkins can look for to flip the color of the blinking dots
Diffstat (limited to 'tcwgweb.sh')
-rwxr-xr-xtcwgweb.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tcwgweb.sh b/tcwgweb.sh
index 9c57cfe7..ecde3102 100755
--- a/tcwgweb.sh
+++ b/tcwgweb.sh
@@ -16,6 +16,8 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
+returncode="ALLGOOD"
+
# $1 - the check.log file to scan
scancheck ()
{
@@ -155,6 +157,7 @@ difftwodirs ()
local userid="`grep 'email=' ${next}/manifest.txt | cut -d '=' -f 2`"
if test -e ${diffdir}/$i-test-results.txt; then
mailto "$i had regressions between ${pversion} and ${cversion}!" ${diffdir}/$i-test-results.txt ${userid}
+ returncode="REGRESSIONS"
fi
else
echo "$i had no regressions between ${pversion} and ${cversion}!" > /tmp/mail$$.txt
@@ -176,6 +179,8 @@ difftwodirs ()
xz ${prev}/*.sum
fi
xz ${next}/*.sum ${next}/*.log
+
+ exit ${returncode}
}
#