From b26ecd6d2ade82efb79ac0b2555bd3fb7da8dbfa Mon Sep 17 00:00:00 2001 From: Jeff Quast Date: Mon, 24 Nov 2014 17:30:58 -0800 Subject: Fix TeamCity Service Messages, 'key', not '' --- tools/teamcity-coverage-report.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/teamcity-coverage-report.sh b/tools/teamcity-coverage-report.sh index ea3de02..2e32241 100755 --- a/tools/teamcity-coverage-report.sh +++ b/tools/teamcity-coverage-report.sh @@ -19,8 +19,8 @@ coverage report --rcfile=`dirname $0`/../.coveragerc > "${report_file}" 2>/dev/n total_no_lines=$(awk '/TOTAL/{printf("%s",$2)}' < "${report_file}") total_no_misses=$(awk '/TOTAL/{printf("%s",$3)}' < "${report_file}") total_no_covered=$((${total_no_lines} - ${total_no_misses})) -echo "##teamcity[buildStatisticValue key='' value='""<${total_no_lines}"">']" -echo "##teamcity[buildStatisticValue key='' value='""<${total_no_covered}"">']" +echo "##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='""${total_no_lines}""']" +echo "##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='""${total_no_covered}""']" # Display for human consumption and remove ascii file. cat "${report_file}" -- cgit v1.2.1