1. Information

  • Contents of the .gitlab-ci.yml file.

    include: "http://gitlab.grendelgames.com/cicd/game-ci/-/raw/develop/include/npm-publish.yml"

2. Issues

The pipeline fails.

+

2026-03-30T09:25:03.839720Z 01E npm notice
2026-03-30T09:25:03.980356Z 01E npm notice Publishing to http://upm.grendelgames.com with tag latest and default access
2026-03-30T09:25:04.930970Z 01O + com.grendelgames.surgical.interactions@1.1.0
2026-03-30T09:25:04.983123Z 01O Successfully published version 1.1.0 of com.grendelgames.surgical.interactions
2026-03-30T09:25:04.987023Z 01O Pushing tags.
2026-03-30T09:25:05.305917Z 01E
2026-03-30T09:25:05.305926Z 01E 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 the 'pre-push' file
                                in the hooks directory (set by 'core.hookspath'; usually '.git/hooks').
2026-03-30T09:25:05.305930Z 01E
2026-03-30T09:25:05.306013Z 01E error: failed to push some refs to 'http://gitlab.grendelgames.com/upm/surgical-input/surgical-interactions.git'
2026-03-30T09:25:05.602235Z 00O section_end:1774862705:step_script
2026-03-30T09:25:05.602246Z 00O+section_start:1774862705:cleanup_file_variables
2026-03-30T09:25:05.603823Z 00O+Cleaning up project directory and file based variables
2026-03-30T09:25:06.445420Z 00O section_end:1774862706:cleanup_file_variables
2026-03-30T09:25:06.445500Z 00O+
2026-03-30T09:25:06.782200Z 00O ERROR: Job failed: exit code 1
  • See https://support.atlassian.com/bitbucket-cloud/kb/pipelines-failing-with-this-repository-is-configured-for-git-lfs-but-git-lfs-was-not-found-on-your-path.

    This will make all the LFS files in your repository to be downloaded into the build container during the build setup phase.
    However, when pushing back to your repository from the pipeline,
    git will also check if there was any change in the cloned LFS file,
    and to perform this git-lfs operation,
    the 'git-lfs' package needs to be installed in the docker image being used in the step.
    
    If the 'git-lfs' package is not installed in the image, the git push command will fail with the error message
    
    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/pre-push'.
    error: failed to push some refs to 'bitbucket.org:<workspace>/<repository>.git'

Possible solutions.

sudo apt-get install git-lfs
git-lfs env
git config --list --show-origin