Groovy script for uploading CI builds to TestFlight
I wrote this script after TestFlight Jenkins plugin (versions 1.3.x) continuously crashed my Jenkins and was simply unusable.
This simple script will upload your .ipa or .apk file to your TestFlight account (uses TestFlight upload API).
- Assuming you have Jenkins installed on your server (brew install jenkins)
- Install Groovy Plugin for Jenkins
- Add an "Execute Groovy Script" build step to the end of your build job
- Select "Groovy Command" option and copy/paste this script into the edit box.
- Configure the script by replacing the constant placeholders at the top of the script.
- Create a notes.txt and place it on your build machine. This file needs to be accessible to the script. Set testFlightNotes constant to point to it (absolute path).
This script was tested with Jenkins 1.522 using Git SCM and Groovy 2.1.6.