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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to run git clone command in a pipeline step LFS enabled

Edited

Hi, 

I've a pipeline that is cloning another repository. Pipeline below is running on yyy repository, and it's supposed to clone xxx repository and do some work on it, then upload the results to AWS S3, I have lots of object to be worked on, so git clone step should be LFS enabled. git lfs client is configured on my base image. LFS is also enabled on my xxx repository. My deployment consumes so much time to clone repo with LFS enabled.

 

- step:
   name: "Pipeline"
   services:
       - docker
    caches:
       - docker
    script:
    - ...
    - ...
    - ...
    - ...
    - git clone git@bitbucket.org:xxx.git

 

I've tried 

clone:
    lfs: true option to reduce the consumed time but it seems it doesn't work with the setup above. 

How can I reduce time consumption for this setup? Is there any workaround here?

Thank you.

 

1 answer

0 votes

I have lots of object to be worked on, so git clone step should be LFS enabled.

@oguzhan Can you explain a bit more about what do mean by objects? Is it the large files tracked by git lfs?

Have you tried using git lfs clone command to speed up the clone?

It looks like the git lfs clone  has been deprecated and git clone has similar performance. 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,785 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you