From f47268e7d4b5a8609b5d27c3084787a746edc478 Mon Sep 17 00:00:00 2001 From: Al Bowles Date: Sun, 14 Nov 2021 19:01:00 -0600 Subject: [PATCH] Some openqa-cli example commands --- EXAMPLES.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 EXAMPLES.md diff --git a/EXAMPLES.md b/EXAMPLES.md new file mode 100644 index 00000000..7412eaa0 --- /dev/null +++ b/EXAMPLES.md @@ -0,0 +1,16 @@ +## Query all jobs from a named build + + openqa-cli api -X GET jobs build=$BUILDNAME + +## Failed jobs in a named build +The overview on the openQA home page counts incompletes as failures + + openqa-cli api -X GET jobs build=$BUILDNAME result=failed,incomplete + +## Print a simple report of all tests and their results from a named build + + openqa-cli api -X GET jobs build=$BUILDNAME | jq -r '.jobs[] | {name,result} | join(" ") | split("-") | last' | sort + +## Further Reading +[openqa-cli cheat sheet](https://openqa-bites.github.io/openqa/openqa-cli-cheat-sheet/) +[jq cheat sheet](https://lzone.de/cheat-sheet/jq)