Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ENV or input password as a alternative to prompt #7

Open
felipe-augusto opened this issue Oct 27, 2017 · 3 comments
Open

Use ENV or input password as a alternative to prompt #7

felipe-augusto opened this issue Oct 27, 2017 · 3 comments

Comments

@felipe-augusto
Copy link

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.

@anh1979
Copy link

anh1979 commented Jun 21, 2018

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

@tkohout
Copy link
Owner

tkohout commented Jun 21, 2018

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

@felipe-augusto
Copy link
Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants