jenkinsci / jenkinsci/workflow-multibranch-plugin

[JENKINS-68344] Setting the strategy for discovery to "Merging the PR with the current target branch revision" with git-lfs sources fails.

Open
#534 2 comments 0 reactions 0 assignees View on GitHub
component:workflow-multibranch-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
87
Forks
131
PR merge metrics
No merged PRs in 30d

Description

With git-lfs sources, when a multipipeline job is triggered by a PR, it attempts to merge git-lfs files even though they are unchanged, and the PR build fails.  The lfs files in question are .png, and are never modified. 

The only workaround has been to set the job to build only the current pull request revision, which means that the PR will not be built against any valid changes made to the main branch while the PR is in development. That's not ideal.

---
Originally reported by sefeldman, imported from: Setting the strategy for discovery to "Merging the PR with the current target branch revision" with git-lfs sources fails.


  • status: Open
  • priority: Major
  • component(s): workflow-multibranch-plugin
  • label(s): git-lfs, plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 20251212-090250

Raw content of original issue

With git-lfs sources, when a multipipeline job is triggered by a PR, it attempts to merge git-lfs files even though they are unchanged, and the PR build fails.  The lfs files in question are .png, and are never modified. 

The only workaround has been to set the job to build only the current pull request revision, which means that the PR will not be built against any valid changes made to the main branch while the PR is in development. That's not ideal.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.