When you explicitly or implicitly execute a git-lfs subcommand in Pipelines, you will get an error below:
This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-checkout.
TL;DR - You can install the git-lfs command as below:
image: atlassian/default-image:2 clone: lfs: true pipelines: branches: master: - step: name: Sample script: - curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash - apt-get install git-lfs - git checkout -b "$(date +%s)"
Or, consider using your/third-party's custom image with the git-lfs installed.
The option lfs: true is only for the file download but not the command installation. So you need to install the git-lfs command to the build environment.
Kenta YamamotoAtlassian Team
We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...
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