summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2013-01-11 04:53:55 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2013-01-11 04:53:55 -0600
commit27cd6c50aeee137fd93e6dce3fd246d2fc2a2554 (patch)
treefe28868f651ccd6e3b42fe21d44981673445dee2
parent279429cc7b1fbfd291cac15de574508b3ab1d2ae (diff)
tb2: the way to report success/failed in gerrit buildbot has changed
-rw-r--r--bin/tinbuild_internals.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/tinbuild_internals.sh b/bin/tinbuild_internals.sh
index d6220b7..d0b7db5 100644
--- a/bin/tinbuild_internals.sh
+++ b/bin/tinbuild_internals.sh
@@ -650,6 +650,7 @@ push_nightly()
report_gerrit()
{
local log_type="$1"
+local status="failed"
[ $V ] && echo "report to gerrit retval=${retval} log_type=${log_type}"
if [ "$log_type" = "short" -a "${retval?}" = "0" ] ; then
@@ -681,12 +682,11 @@ local log_type="$1"
fi
if [ "${retval?}" = "0" ] ; then
- log_msgs "Report Success for gerrit ref '$GERRIT_TASK_TICKET'."
- cat "${gzlog}" | ssh ${GERRIT_HOST?} buildbot put --id ${TINDER_ID?} --ticket "${GERRIT_TASK_TICKET}" --succeed --log -
- else
- log_msgs "Report Failure for gerrit ref '$GERRIT_TASK_TICKET."
- cat "${gzlog}" | ssh ${GERRIT_HOST?} buildbot report --id ${TINDER_ID?} --ticket "${GERRIT_TASK_TICKET}" --failed --log -
+ status="success"
fi
+ log_msgs "Report Success for gerrit ref '$GERRIT_TASK_TICKET'."
+ cat "${gzlog}" | ssh ${GERRIT_HOST?} buildbot put --id ${TINDER_ID?} --ticket "${GERRIT_TASK_TICKET}" --status $status --log -
+
}
fetch_gerrit()