os-autoinst-distri-rocky-mi.../build-report.sh
akatch 902950ab47
Script fixes (#99)
* Increment version

* Fix this header
2022-06-07 22:26:57 -05:00

14 lines
383 B
Bash
Executable File

#!/bin/bash
set -e
BUILD_NAME=$1
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 | \
sed 's,^,| ,g;s,$, | | | |,g'