dd209f70e3
* Add wrapper script * Default build name uses ROCKY_VERSION * Wrapper script to print simple build report in Markdown format * Some openqa-cli example commands * Include BUILD_NAME in report header * Additional columns * Extra hyphen * Added @tcooper's suggestion
14 lines
382 B
Bash
Executable File
14 lines
382 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'
|