Wrapper script to print simple build report in Markdown format

This commit is contained in:
Al Bowles 2021-11-14 18:29:45 -06:00
parent 84a1d9440d
commit b9bd20fab0

9
build-report.sh Executable file
View File

@ -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