os-autoinst-distri-rocky-mi.../build-report.sh
2021-11-15 16:40:10 -06:00

13 lines
340 B
Bash
Executable File

#!/bin/bash
set -e
BUILD_NAME=$1
printf '# %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