From aec950240eaab7d37fb6c7944e5bc39d8579c912 Mon Sep 17 00:00:00 2001 From: Umesh Parulekar Date: Thu, 28 Feb 2019 13:22:02 -0600 Subject: [PATCH] oneibmcloud/DevOps-Insights#5126 added code for build record --- tests/run-tests.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/run-tests.sh b/tests/run-tests.sh index 29fff8c..aff127e 100644 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -11,6 +11,12 @@ grunt dev-test-cov --no-color --gruntfile $GRUNTFILE --base . grunt_result=$? set -e +build_status="pass" +if [ $grunt_result -ne 0 ]; then + build_status="fail" +fi +idra --publishbuildrecord --branch=$GIT_BRANCH --repositoryurl=$GIT_URL --commitid=$GIT_COMMIT --status=$build_status + idra --publishtestresult --filelocation=./tests/server/mochatest.xml --type=unittest idra --publishtestresult --filelocation=./tests/server/coverage/reports/coverage-summary.json --type=code