I am trying to clone my repo into my pipeline using the following on a step triggered by a pull request.
- git clone $BITBUCKET_GIT_HTTP_ORIGIN --branch=$BITBUCKET_PR_DESTINATION_BRANCH --single-branch /tmp/base
+ git clone $BITBUCKET_GIT_HTTP_ORIGIN --branch=$BITBUCKET_PR_DESTINATION_BRANCH --single-branch /tmp/base
Cloning into '/tmp/base'...
fatal: could not read Username for 'https://bitbucket.org': No such device or address
It seems like I used the wrong environment variable, I changed it from
$BITBUCKET_GIT_HTTP_ORIGIN
to
$BITBUCKET_GIT_SSH_ORIGIN
and now it works fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.