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

Only ask for credentials when they're not set #3

Open
erickwilder opened this issue Sep 10, 2018 · 2 comments
Open

Only ask for credentials when they're not set #3

erickwilder opened this issue Sep 10, 2018 · 2 comments

Comments

@erickwilder
Copy link

I've set up this plugin and added both BITBUCKET_USER and BITBUCKET_PASSWORD as environment variables but every time I run semantic-release the plugin asks for credentials.

export BITBUCKET_USER=xxxx
export BITBUCKET_PASSWORD=zzzzz

npx semantic-release

Username for 'https://bitbucket.org':

Expected result:

Respect whatever values are defined by the environment variables and don't ask for credentials at all.

@cmurczek-it
Copy link
Member

Hi @erickwilder, are you using the hosted offering or an on-prem server?
Also is your repo setup as a team repo? If the latter is the case, you need to set the teamName when configuring the plugin for releasing to BitBucket. There's on more thing with that scenario, though. Since the repo is not owned by you in that case, but by the team account, you'd also need to provide the team account's password, which is why you should think of setting up an app password. You can find an example config as well as the link to Atlassians docs regarding app passwords in the Config section of the readme.
If you still have problems, please provide more info, e.g. when is sematic-release-bitbucket asking for credentials? Try running semantic-release with the --debug switch and post the log here. It should contain some pointers to find out what's happening.

@erickwilder
Copy link
Author

erickwilder commented Sep 18, 2018 via email

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

No branches or pull requests

2 participants