Skip to content

Commit

Permalink
Fix TeamCity Service Messages, 'key', not '<key>'
Browse files Browse the repository at this point in the history
  • Loading branch information
jquast committed Nov 25, 2014
1 parent e300fcf commit b26ecd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/teamcity-coverage-report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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='<CodeCoverageAbsLTotal>' value='""<${total_no_lines}"">']"
echo "##teamcity[buildStatisticValue key='<CodeCoverageAbsLCovered>' 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}"
Expand Down

0 comments on commit b26ecd6

Please sign in to comment.