Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,368,008
Community Members
 
Community Events
168
Community Groups

How do I clone my repo into my repo pipeline

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
I have set up an ssh key
I have added the public key for that ssh key as an access key
I get the following error
+ 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

2 answers

1 accepted

0 votes
Answer accepted

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events