jenkinsci / jenkinsci/git-plugin
[JENKINS-53432] Unable to automatically discover and build git tags with Jenkins multibranch pipelines and the Git Plugin
- Dominant language
- Java
- Stars
- 694
- Forks
- 1.1k
- Avg merge
- 1h 29m
- Merged PRs (30d)
- 3
Description
I configured a multibranch pipeline job to discover and build branches and tags for my git repository hosted in Bitbucket Server. New branches and commits are discovered and built correctly but new tags remain undiscovered. I can force tag discovery if I initiate a manual scan in Jenkins or I click "Trigger Jenkins" in the Webhook to Jenkins for Bitbucket Server UI for my repository.
My Jenkins Configuration

My Webhook to Jenkins for Bitbucket Server Configuration

Originally, I wanted to use the Bitbucket Branch Source Plugin rather than the Git Plugin but in that case JENKINS-51063 prevents tag discovery and build. Is there a similar issue with the Git Plugin?
---
Originally reported by iamrewt, imported from: Unable to automatically discover and build git tags with Jenkins multibranch pipelines and the Git Plugin
Raw content of original issue
I configured a multibranch pipeline job to discover and build branches and tags for my git repository hosted in Bitbucket Server. New branches and commits are discovered and built correctly but new tags remain undiscovered. I can force tag discovery if I initiate a manual scan in Jenkins or I click "Trigger Jenkins" in the Webhook to Jenkins for Bitbucket Server UI for my repository.
My Jenkins Configuration
My Webhook to Jenkins for Bitbucket Server Configuration
Originally, I wanted to use the Bitbucket Branch Source Plugin rather than the Git Plugin but in that case
JENKINS-51063prevents tag discovery and build. Is there a similar issue with the Git Plugin?
environment
```
* Jenkins v2.141
* Basic Branch Build Strategies Plugin v1.0.1
* Git plugin v3.9.1
* Bitbucket Server v5.13.1
* Webhook to Jenkins for Bitbucket Server v4.4.4
* Windows Server 2012 R2
```
2 attachments
- [image-2018-09-05-12-57-45-991.png](https://issues.jenkins.io/secure/attachment/44110/image-2018-09-05-12-57-45-991.png)
> 
- [image-2018-09-05-13-03-24-545.png](https://issues.jenkins.io/secure/attachment/44109/image-2018-09-05-13-03-24-545.png)
> 
Contributor guide
Assessment
This issue has not been assessed yet.