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
<span>Cloning into '/tmp/base'...</span><span>fatal: could not read Username for '<a href="https://bitbucket.org/" rel="noopener noreferrer" target="_blank">https://bitbucket.org</a>': No such device or address</span><span>+ git clone $BITBUCKET_GIT_HTTP_ORIGIN --branch=$BITBUCKET_PR_DESTINATION_BRANCH --single-branch /tmp/base</span>
<span>Cloning into '/tmp/base'...</span>
<span>fatal: could not read Username for '<a href="https://bitbucket.org/" rel="noopener noreferrer" target="_blank">https://bitbucket.org</a>': No such device or address</span>
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.
@Theodora Boudale any ideas?
It looks like you're new here. Sign in or register to get started.