SHARE
TWEET

Untitled

a guest Jun 19th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mv PedelecApp-jar-with-dependencies.jar PedelecApp.jar
  2. zip PedelecApp.zip PedelecApp.jar
  3.  
  4. #count the number of existing versions
  5. newVersionNumber=$(curl -s -H "X-HockeyAppToken: $bamboo_HockeyApp_Token" https://rink.hockeyapp.net/api/2/apps/$bamboo_HockeyApp_AppID/app_versions | python -mjson.tool | grep '"version"' | wc -l)
  6. let "newVersionNumber+=1"
  7.  
  8. echo New Version Number: $newVersionNumber
  9.  
  10. pomXmlVersion=$(mvn -f PedelecApp/pom.xml help:evaluate -Dexpression=project.version -q -DforceStdout)
  11.  
  12. echo Version of pom.xml: $pomXmlVersion
  13.  
  14. #create a new version and store the version on HockeyApp
  15. versionId=$(curl -s -F "bundle_short_version=$pomXmlVersion" -F "bundle_version=$pomXmlVersion" -H "X-HockeyAppToken: $bamboo_HockeyApp_Token" https://rink.hockeyapp.net/api/2/apps/$bamboo_HockeyApp_AppID/app_versions/new | python -mjson.tool | grep '"id":' | sed -e 's/\"id\":\(.*\),/\1/' | sed -e 's/^[ \t]*//')
  16.  
  17. echo New Version ID: $versionId
  18.  
  19. #upload the application
  20. curl \
  21.   -X PUT \
  22.   -F "ipa=@PedelecApp.zip" \
  23.   -F "status=2" \
  24.   -F "notify=2" \
  25.   -H "X-HockeyAppToken: $bamboo_HockeyApp_Token" \
  26.   https://rink.hockeyapp.net/api/2/apps/$bamboo_HockeyApp_AppID/app_versions/$versionId
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top