#!/bin/bash set -e BUILD_NAME=$1 printf '# %s\nTest | Result\n=============\n' "$BUILD_NAME" openqa-cli api -X GET jobs build="$BUILD_NAME" | \ jq -r '.jobs[] | {name,result} | join(" | ") | split("-") | last' | \ sort