diff options
author | Jakob Odersky <jakob@odersky.com> | 2017-03-11 14:33:01 -0800 |
---|---|---|
committer | Jakob Odersky <jakob@odersky.com> | 2017-03-11 14:33:01 -0800 |
commit | 5b57a310aec9a6f8bf7d3b42786fe0d758d40083 (patch) | |
tree | 3dc9ce3bcc496d89b3909854c681c2a27f7a98eb /build | |
parent | 204376d7ede8f630d1f58aa5fea86f01f951ba8d (diff) | |
download | crashbox-ci-5b57a310aec9a6f8bf7d3b42786fe0d758d40083.tar.gz crashbox-ci-5b57a310aec9a6f8bf7d3b42786fe0d758d40083.tar.bz2 crashbox-ci-5b57a310aec9a6f8bf7d3b42786fe0d758d40083.zip |
Random build id
Diffstat (limited to 'build')
-rwxr-xr-x | build | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 |