jenkinsci / jenkinsci/git-plugin
[JENKINS-26314] Using a Tag in Branch Specifier causes the polling to not detect the head revision
- Dominant language
- Java
- Stars
- 694
- Forks
- 1.1k
- Avg merge
- 1h 29m
- Merged PRs (30d)
- 3
Description
- Use a Tag in the Branch Specifier.
- Polling on the remote repo will occur.
- It will run git ls-remote -h MY_REMOTE MY_TAG
- 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
Raw content of original issue
- Use a Tag in the Branch Specifier.
- Polling on the remote repo will occur.
- It will run git ls-remote -h MY_REMOTE MY_TAG
- 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
Assessment
This issue has not been assessed yet.