2014-05-20 07:08:21 +00:00
#!/bin/bash
2015-02-26 23:13:12 +00:00
# ReactOS BuildBot Build Scripts
2014-10-25 17:26:19 +00:00
# submit_result - Call Testman's BuildBot Aggregator script to collect the regression-testing output by sysreg.
#
# Parameter $1 - BuildBot Build number of the ReactOS build that has been tested.
2017-09-16 15:21:08 +00:00
# Parameter $2 - BuildBot "reason" property.
# Parameter $3 - JIRA Attachment ID of the patch file (this parameter can be evaluated as $ATTACHMENT_ID inside config.inc to set different sourceids for regular and patched builds)
2023-02-02 12:01:34 +00:00
BUILDNO="$1"
REASON="$2"
ATTACHMENT_ID="$3"
2014-05-20 07:08:21 +00:00
source ../../config.inc
2023-02-02 12:01:34 +00:00
if [ "${BUILDNO}" = "" ]; then
2014-05-20 07:08:21 +00:00
echo "Please specify the build number!"
exit 1
fi
2023-02-02 12:01:34 +00:00
echo "* Transferring winetest results for build ${BUILDNO}."
2014-05-20 07:08:21 +00:00
echo "* Using builder $TESTMAN_BUILDER."
2014-08-13 06:54:34 +00:00
2023-02-02 12:01:34 +00:00
COMMENT="Build ${BUILDNO}"
if [ "${ATTACHMENT_ID}" != "" ]; then
COMMENT+=", ID: ${ATTACHMENT_ID}"
fi
if [ "${REASON}" != "" -a "${REASON}" != "None" ]; then
COMMENT+=", Reason: ${REASON}"
2014-08-13 06:54:34 +00:00
fi
2017-09-16 15:21:08 +00:00
TESTMAN_OUT=`wget -q -O - "https://reactos.org/testman/webservice/buildbot_aggregator.php?sourceid=$TESTMAN_ID&password=$TESTMAN_PASS&builder=$TESTMAN_BUILDER&platform=0&build=$1&comment=$COMMENT"`
echo "$TESTMAN_OUT"
[ "$TESTMAN_OUT" = "OK" ] && exit 0 || exit 1