Skip to content

Instantly share code, notes, and snippets.

@kibotu
Last active April 2, 2016 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kibotu/833e4703e426eb552d6d32961cb6373a to your computer and use it in GitHub Desktop.
Save kibotu/833e4703e426eb552d6d32961cb6373a to your computer and use it in GitHub Desktop.
Upload to hockey using curl with progress bar.
#!/bin/sh
HOCKEY_API_TOKEN=""
HOCKEY_APP_TOKEN=""
APP_PATH="ci-build.apk"
curl \
--progress-bar \
-F "status=2" \
-F "notify=1" \
-F "notes=CI-Build" \
-F "notes_type=0" \
-F "ipa=@$APP_PATH" \
-H "X-HockeyAppToken: $HOCKEY_API_TOKEN" \
https://rink.hockeyapp.net/api/2/apps/$HOCKEY_APP_TOKEN/app_versions/upload \
| tee ; test ${PIPESTATUS[0]} -eq 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment