From b9bd20fab0a30fba164a6b4fde14adc6d1d10ca8 Mon Sep 17 00:00:00 2001 From: Al Bowles Date: Sun, 14 Nov 2021 18:29:45 -0600 Subject: [PATCH] Wrapper script to print simple build report in Markdown format --- build-report.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 build-report.sh diff --git a/build-report.sh b/build-report.sh new file mode 100755 index 00000000..b40e5059 --- /dev/null +++ b/build-report.sh @@ -0,0 +1,9 @@ +#!/bin/bash +set -e + +BUILD_NAME=$1 + +printf 'Test | Result\n=============\n' +openqa-cli api -X GET jobs build="$BUILD_NAME" | \ + jq -r '.jobs[] | {name,result} | join(" | ") | split("-") | last' | \ + sort