Build failure with BuildConfig from Git repository containing Nexus LFS files

Solution Verified - Updated -

Issue

  • Git clone within a build pod fails for GitHub repo with LFS(Large File Storage) files with the below mentioned error:
Adding cluster TLS certificate authority to trust store
Cloning "<GIT_REPO_LINK>" ...
error: Downloading <FILE_FROM_GIT_REPO> (70 MB)
Error downloading object: <FILE_FROM_GIT_REPO>: Smudge error: Error downloading <FILE_FROM_GIT_REPO>(a11cxxxxxxxxxxxxxxxxxxx): batch request: missing protocol: "origin.git/info/lfs"
Errors logged to /tmp/build/inputs/.git/lfs/logs/123456789.log
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal:<FILE_FROM_GIT_REPO>: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.12.z+

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content