azure-pipelines-tasks: Get Sources - Bitbucket Cloud OAuth connection - fatal: could not read Username ...

Environment

Account Name & URL: https://pointman-hq.visualstudio.com Build Definition: ALL that use our bitbucket cloud OAuth Service connection Build Number: All since August 13th @ 2:51 EDT

OS of the machine: Hosted (WIN) 2.116.0 (multiple builds) Hosted Linux Preview 2.116.0 (multiple builds)

Issue Description

Task Name: Get Sources Using Bitbucket Cloud OAuth connection, cannot clone any of our repositories for many builds.

Here is the VSTS script that is run to clone the repository:

git init
git remote add origin https://bitbucket.org//project/srsv3_frontend
git config gc.auto 0
git config --get-all http.https://bitbucket.org//project/repo_name.extraheader
git config --get-all http.proxy

# git command that causes the error:
git -c http.extraheader="AUTHORIZATION: basic ***" fetch --tags --prune --progress --no-recurse-submodules --depth=1 origin

Error logs

Git fetch failed with exit code 128
fatal: could not read Username for 'https://bitbucket.org': terminal prompts disabled

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 18 (8 by maintainers)

Most upvoted comments

This is a known issue and we’re rolling out a fix. Sorry for the inconvenience. Switching to username / password should work as a workaround. Feedback thread is here: https://developercommunity.visualstudio.com/content/problem/529542/bitbucket-checkout-error-could-not-read-username.html