Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do I clone my repo into my repo pipeline

Paul Bradbury August 25, 2022

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
Paul Bradbury August 26, 2022

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.

0 votes
Paul Bradbury August 26, 2022

@Theodora Boudale any ideas?

Suggest an answer

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

Atlassian Community Events