jenkinsci / jenkinsci/git-plugin
[JENKINS-72731] Refspec does not work for Multibranch Pipelines
- 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
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-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-26-10-53-47-289.png](https://issues.jenkins.io/secure/attachment/62135/image-2024-02-26-10-53-47-289.png)
> 
Contributor guide
Assessment
This issue has not been assessed yet.