fastlane-firebase-plugin icon indicating copy to clipboard operation
fastlane-firebase-plugin copied to clipboard

Use ENV or input password as a alternative to prompt

Open felipe-augusto opened this issue 7 years ago • 3 comments

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.

felipe-augusto avatar Oct 27 '17 20:10 felipe-augusto

@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...

anh1979 avatar Jun 21 '18 10:06 anh1979

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/)

tkohout avatar Jun 21 '18 16:06 tkohout

@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

felipe-augusto avatar Jun 21 '18 21:06 felipe-augusto