I have a setup where I try to sign an Android application with a key password which contains a dollar sign ($).
I set up the secret environment variable for the project:
I’m using the sign-apk Android step.
I verified locally that all passwords are correct.
However I get a build error on my builds in the signing process.
=> /usr/bin/jarsigner “-sigfile” “CERT” “-sigalg” “SHA1withRSA” “-digestalg” “SHA1” “-keystore” “/bitrise/src/projectname.jks” “-storepass” “***” “-keypass” “***” “-signedjar” “/tmp/bitrise-sign-apk438099450/unaligned.apk” “/tmp/bitrise-sign-apk438099450/unsigned.apk” "projectname"
Failed to sign APK, error: jarsigner: key associated with projectname not a private key
The error is misleading as I verified that the keystore file has the required private key and that both the storage and key passwords are correct.
The only reason for failure I can think about now is the dollar sign in the password.
Does it interfere with the enviroment variable replacement functionality on Bitrise, if so how to escape?