jenkinsci / jenkinsci/git-plugin

[JENKINS-72731] Refspec does not work for Multibranch Pipelines

Open
#3,830 10 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

PS: Im not sure if it is only for Multibranch Pipelines, but thats my current workflow, and the only one Im aware of.

 

Setting Refspec on the Configuration level:

 

Making sure that the refspec is honored:

 

But still when the branch runs, tags are fetched, but not the declared refspec:

 

 

I believe this a regression, since this has worked for me in the past.

---
Originally reported by rheynsza, imported from: Refspec does not work for Multibranch Pipelines


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

Raw content of original issue

PS: Im not sure if it is only for Multibranch Pipelines, but thats my current workflow, and the only one Im aware of.

 

Setting Refspec on the Configuration level:

 

Making sure that the refspec is honored:

 

But still when the branch runs, tags are fetched, but not the declared refspec:

 

 

I believe this a regression, since this has worked for me in the past.

4 attachments

- [image-2024-02-19-09-47-13-162.png](https://issues.jenkins.io/secure/attachment/62111/image-2024-02-19-09-47-13-162.png)
> ![image-2024-02-19-09-47-13-162.png](https://issues.jenkins.io/secure/attachment/62111/image-2024-02-19-09-47-13-162.png)
- [image-2024-02-19-09-47-44-933.png](https://issues.jenkins.io/secure/attachment/62110/image-2024-02-19-09-47-44-933.png)
> ![image-2024-02-19-09-47-44-933.png](https://issues.jenkins.io/secure/attachment/62110/image-2024-02-19-09-47-44-933.png)
- [image-2024-02-19-09-49-31-184.png](https://issues.jenkins.io/secure/attachment/62109/image-2024-02-19-09-49-31-184.png)
> ![image-2024-02-19-09-49-31-184.png](https://issues.jenkins.io/secure/attachment/62109/image-2024-02-19-09-49-31-184.png)
- [image-2024-02-26-10-53-47-289.png](https://issues.jenkins.io/secure/attachment/62135/image-2024-02-26-10-53-47-289.png)
> ![image-2024-02-26-10-53-47-289.png](https://issues.jenkins.io/secure/attachment/62135/image-2024-02-26-10-53-47-289.png)

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.