summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorJakob Odersky <jakob@odersky.com>2017-03-11 14:33:01 -0800
committerJakob Odersky <jakob@odersky.com>2017-03-11 14:33:01 -0800
commit5b57a310aec9a6f8bf7d3b42786fe0d758d40083 (patch)
tree3dc9ce3bcc496d89b3909854c681c2a27f7a98eb /build
parent204376d7ede8f630d1f58aa5fea86f01f951ba8d (diff)
downloadcrashbox-ci-5b57a310aec9a6f8bf7d3b42786fe0d758d40083.tar.gz
crashbox-ci-5b57a310aec9a6f8bf7d3b42786fe0d758d40083.tar.bz2
crashbox-ci-5b57a310aec9a6f8bf7d3b42786fe0d758d40083.zip
Random build id
Diffstat (limited to 'build')
-rwxr-xr-xbuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/build b/build
index d4f92c1..93013a1 100755
--- a/build
+++ b/build
@@ -3,13 +3,18 @@
case "$1" in
start)
shift
- curl -i -X POST -H "Content-Type: application/json" "http://localhost:9000/api/submit" \
+ curl -i -sS -X POST -H "Content-Type: application/json" "http://localhost:9000/api/submit" \
-d "{\"url\": \"$1\"}"
;;
cancel)
shift
- curl -i -X POST "http://localhost:9000/api/$1/cancel"
+ curl -i -sS -X POST "http://localhost:9000/api/$1/cancel"
;;
+ logs)
+ shift
+ curl -i -sS -X GET "http://localhost:9000/api/$1/logs"
+ ;;
+
*)
echo "invalid command $1" >&2
exit 2