Hi there,
Sorry for the long delay! So basically the issue is that the BITRISEIO_ANDROID_KEYSTORE_URL
environment variable isn’t a path to the keystore file on the build machine, but a URL. I would suggest to remove the apk signing from the gradle file and use the sign-apk
step instead, but as this wouldn’t be an option for you a solution that comes to my mind would be to have either a Script
step or our File Downloader
step to download the keystore file. You can set an environment variable as the target path for both cases and use this variable in your build.gradle
file.
eg.: have a DOWNLOADED_KEYSTORE_PATH
variable with the desired download location and use
curl -o $DOWNLOADED_KEYSTORE_PATH $BITRISEIO_ANDROID_KEYSTORE_URL
Or
Set the Download source url
input of the File Downloader
step to $BITRISEIO_ANDROID_KEYSTORE_URL
and the Download destination path
to $DOWNLOADED_KEYSTORE_PATH
After that you can update the gradle file to have
def keystorePath = System.getenv("DOWNLOADED_KEYSTORE_PATH")
Let me know if you’d have any issues or questions about these!