fastlane-firebase-plugin
fastlane-firebase-plugin copied to clipboard
Use ENV or input password as a alternative to prompt
It would be nice to be able to pass the firebase password on non-interactive enviroments. For example:
firebase_add_client(
username: ENV['USERNAME'],
password: ENV['FASTLANE_FIREBASE_PASSWORD']
)
Or, even better if we could set a .env
variable, for example ENV['FASTLANE_FIREBASE_PASSWORD']
, and the code checks if it's defined before prompting the user to insert the password.
@tkohout Could you please let me know about the outcome of this issue? I am trying to use this plugin from within our CI Server (Jenkins) and having trouble now, because I cannot retrieve the password ... "Could not retrieve response as fastlane runs in non-interactive mode" I would like to setup my password in an .env file (or it could be retrieved from the keychain...) - I am new to ruby and fastlane and all of this, so improving the code of this plugin is not quite possible for me. Could you please help out?
Edit: I see, that you try to get the pwd from the keychain in manager.rb, my keychain is locked with another password, perhaps that is the cause...
It might’ve been good to add an option for env variable, unfortunately i won’t be able to contribute to the project in the near future.
Have a look at the unlock_keychain action (https://docs.fastlane.tools/actions/unlock_keychain/)
@anh1979 I fixed this in my fork, and I'm currently using it with GitLab. If you want you can use it: https://github.com/felipe-augusto/fastlane-firebase-plugin