Skip to content

Instantly share code, notes, and snippets.

@QAutomatron
Last active July 25, 2017 17:09
Show Gist options
  • Save QAutomatron/00ef4ec44c3f82fd99c811b99b61a4d7 to your computer and use it in GitHub Desktop.
Save QAutomatron/00ef4ec44c3f82fd99c811b99b61a4d7 to your computer and use it in GitHub Desktop.
Download ipa from Circle CI
#
$TEAM = yourTeam
$REPO = yourRepo
$BUILD = yourBuildNumber
$CI_TOKEN = yourCIToken
echo "Will download app from CI"
rm -f *.ipa
curl https://circleci.com/api/v1/project/$TEAM/$REPO/$BUILD/artifacts?circle-token=$CI_TOKEN \
| egrep -o "$GREP" \
| xargs -I{} wget {}?circle-token=$CI_TOKEN -O "$VERSION-$APP.ipa"
#
$TEAM = yourTeam
$REPO = yourRepo
$BUILD = yourBuildNumber
$CI_TOKEN = yourCIToken
echo "Will download app from CI"
rm -f *.ipa
rm -f env.properties
curl 'https://circleci.com/api/v1/project/$TEAM/$REPO/latest/artifacts?circle-token=$CI_TOKEN&branch=master&filter=successful' \
| egrep -o "$GREP" \
| xargs -I{} wget {}?circle-token=$CI_TOKEN -O "app.ipa"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment