jenkinsci / jenkinsci/git-plugin

[JENKINS-23082] Git Publisher cannot append notes to remote repos

Open
#2,477 1 comment 0 reactions 0 assignees View on GitHub
component:git-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

When using notes in Git Publisher, the first note pushed to a repository works fine. If the workspace is cleaned and the build is run again, Publisher fails with a merge conflict.

This happens because clone/fetch/pull do not pull notes by default. Trying to push a note to the same node (e.g. refs/notes/build) causes a merge conflict. The notes need to be explicitly fetched before the new note is appended.

---
Originally reported by atomicopossum, imported from: Git Publisher cannot append notes to remote repos


  • status: Open
  • priority: Minor
  • component(s): git-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 3
  • imported: 2025-12-02

Raw content of original issue

When using notes in Git Publisher, the first note pushed to a repository works fine. If the workspace is cleaned and the build is run again, Publisher fails with a merge conflict.

This happens because clone/fetch/pull do not pull notes by default. Trying to push a note to the same node (e.g. refs/notes/build) causes a merge conflict. The notes need to be explicitly fetched before the new note is appended.

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.