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

Cannot fetch remote in AzureDevOps CI pipeline when running beachball check #674

Open
shaohaolin opened this issue Jun 8, 2022 · 2 comments

Comments

@shaohaolin
Copy link

I set up a beachball check step in an AzureDevOps CI pipeline.
The job is failing due to cannot fetch remote in the pipeline, I wonder if there is any setting / configuration to get this step working in Azure DevOps. The command is working in local dev machine.

image

@shaohaolin shaohaolin changed the title Cannot fetch remote in AzureDevOps CI pipeline Cannot fetch remote in AzureDevOps CI pipeline when running beachball check Jun 8, 2022
@shaohaolin
Copy link
Author

After digging a bit more on the error, this error is related to permissions issue on Azure DevOps.

The error message is

fatal: could not read Username for 'https://xxx.xxx.com': terminal prompts disabled ##[error]Bash exited with code '128'.

To fix this, a pipeline needs to have access to the system token.

Solution is to add a checkout session with persistCredentials set to true.

steps:
  - checkout: self
    persistCredentials: true

@kenotron Would you mind if I create a PR to include a documentation for setting up Azure DevOps pipeline? I noticed that #659 is including a Azure DevOps example.

@rajsite
Copy link

rajsite commented Jul 27, 2022

We also hit this and found we needed persistCredentials: true for AzDo pipelines.

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