The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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?

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events