This section describes automated CI setup for RapidFTR apk deployment to google playstore.
What was needed:
In order to publish the apk, we needed to prepare the developer account according to the instructions here;
A free-style software project was created. The following environment variables were specified as part of the build.
A shell build step was added to build, sign and zipalign the apk.
Please note: For the CI job to sucessfully upload the apk, the versionCode defined in the apk's AndroidManifest.xml file has to be different (either lower or higher) from the existing apk in the playstore.
Notes:
More information on how to configure the Google Play Android Publisher plugin can be found https://wiki.jenkins-ci.org/display/JENKINS/Google+Play+Android+Publisher+Plugin
Understanding how to setup environment variables with the credentials binding plugin can be found https://wiki.jenkins-ci.org/display/JENKINS/Credentials+Binding+Plugin