jenkinsci / jenkinsci/git-plugin

[JENKINS-26314] Using a Tag in Branch Specifier causes the polling to not detect the head revision

Open
#2,583 4 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


  1. Use a Tag in the Branch Specifier.

  2. Polling on the remote repo will occur.

  3. It will run git ls-remote -h MY_REMOTE MY_TAG

  4. This will result in nothing returned from the remote repository.

git ls-remote has a --tags option which will return the SHA of the Tag.

Polling is enabled because the Job also checkouts an SVN repository using the Jenkins Multiple SCMs plugin which doesn't refer to a tag.

---
Originally reported by nathan_smith, imported from: Using a Tag in Branch Specifier causes the polling to not detect the head revision


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

Raw content of original issue


  1. Use a Tag in the Branch Specifier.

  2. Polling on the remote repo will occur.

  3. It will run git ls-remote -h MY_REMOTE MY_TAG

  4. This will result in nothing returned from the remote repository.

git ls-remote has a --tags option which will return the SHA of the Tag.

Polling is enabled because the Job also checkouts an SVN repository using the Jenkins Multiple SCMs plugin which doesn't refer to a tag.

environment

```
Jenkins 1.584

Jenkins Git Plugin 2.3.1

Jenkins Multiple SCMs plugin 0.3
```

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.