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 use the actual artifact of a git-lfs file from a cloned repo in bitbucket pipelines?

Joshua von Damm
April 29, 2021

So in my pipeline I clone a repo that has a bunch of git lfs tar files. I then extract (tar xvf) one of the files. 

In the clone step I have:

`lfs: true` 

However tar fails, and I confirmed that if I manually add the original file, tar works as intended and extracts. 

I also ensured that I am in the Docker image `atlassian/default-image:2`, which supports git, if that was an issue. 

In further research I did find the "git lfs migrate export" command, but apparently `git lfs` commands are not supported (second to last paragraph).

 

How do I clone the repo and extract the original file?

 

EDIT: So if I have the lfs files on the same repo, the "lfs: true" step works properly and I can extract the files. 

 

But when I clone from a separate repo it does not clone the actual artifacts. 

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events