jenkinsci / jenkinsci/git-plugin

[JENKINS-53432] Unable to automatically discover and build git tags with Jenkins multibranch pipelines and the Git Plugin

Open
#3,342 11 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

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


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

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-51063 prevents 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-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)
> ![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

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.