diff --git a/build-report.sh b/build-report.sh index f75c4147..8edc978a 100755 --- a/build-report.sh +++ b/build-report.sh @@ -3,10 +3,11 @@ set -e BUILD_NAME=$1 -printf '# %s\n' "$BUILD_NAME" +printf '# Build%s\n' "$BUILD_NAME" printf "| Test | Result | Failure Reason | Effort to Fix | Notes |\n" printf "| ---- | ------ | -------------- | ------------ | ----- |\n" openqa-cli api -X GET jobs build="$BUILD_NAME" | \ jq -r '.jobs[] | {name,result} | join(" | ") | split("-") | last' | \ - sort + sort | \ + sed 's,^,| ,g;s,$, | | | |,g'