jenkinsci / jenkinsci/git-plugin

[JENKINS-59008] Merge before build, reference is not a tree on second build

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

Description

Pipeline Jenkins build with

SCM: GIT

Branches to build: refs/tags/*_${RELEASE}_feature

Additional Behaviours: Merge before build

 

first polled build is ok (change is detected and merged), see log

second build triggered by hand gets error (no change), see log

 

---
Originally reported by petekol, imported from: Merge before build, reference is not a tree on second build


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

Raw content of original issue

Pipeline Jenkins build with

SCM: GIT

Branches to build: refs/tags/*_${RELEASE}_feature

Additional Behaviours: Merge before build

 

first polled build is ok (change is detected and merged), see log

second build triggered by hand gets error (no change), see log

 

environment

```
2.176.2

git-plugin 2.8.0
```

4 attachments

- [Jenkinsfile](https://issues.jenkins.io/secure/attachment/48410/Jenkinsfile)
- [config.xml](https://issues.jenkins.io/secure/attachment/48383/config.xml)
- [first-good.txt](https://issues.jenkins.io/secure/attachment/48371/first-good.txt)
- [second-bad.txt](https://issues.jenkins.io/secure/attachment/48370/second-bad.txt)

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.