add build log access: nbapi build <id>, nbshell builds log, routing triggers
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
# nbapi usage [--from YYYY-MM-DD] [--to YYYY-MM-DD] # billable CPU-seconds + count
|
||||
# nbapi summary # aggregated build metrics
|
||||
# nbapi builds [--limit N] # recent build history
|
||||
# nbapi build <id> # single build detail + status_message
|
||||
# nbapi raw <path> # GET any API path verbatim
|
||||
#
|
||||
# Output is JSON (pretty-printed via jq when available).
|
||||
@@ -77,15 +78,19 @@ builds)
|
||||
done
|
||||
get "/builds?limit=${limit}"
|
||||
;;
|
||||
build)
|
||||
[ -n "${1:-}" ] || { echo "nbapi build: need a build id" >&2; exit 2; }
|
||||
get "/builds/$1"
|
||||
;;
|
||||
raw)
|
||||
[ -n "${1:-}" ] || { echo "nbapi raw: need a path" >&2; exit 2; }
|
||||
get "$1"
|
||||
;;
|
||||
""|-h|--help|help)
|
||||
sed -n '2,20p' "$0"
|
||||
sed -n '2,21p' "$0"
|
||||
;;
|
||||
*)
|
||||
echo "nbapi: unknown command '$cmd' (try: usage, summary, builds, raw)" >&2
|
||||
echo "nbapi: unknown command '$cmd' (try: usage, summary, builds, build, raw)" >&2
|
||||
exit 2
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user