jenkinsci / jenkinsci/git-plugin

[JENKINS-56426] No commit for max age generates build error each SCM Poll

Open
#3,411 1 comment 0 reactions 0 assignees View on GitHub
component:git-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

Branch specifier set to refs/tags/*

Max age used to only build recent tags.

If no tags within max age range, there is nothing to build, no jobs needed.

However, a job still gets created each SCM polling cycle which generates an error due to no commits found.

Git plugin 3.9.3

Email extension plugin 2.64

More info:

Same problem if I open up max age to include some tags, but the first jobs succeed in building the tags it found.  Then back to creating jobs w/ no valid tags.

Error message looks like this:

> git show-ref --tags -d # timeout=10

ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.

Something else is odd.   Not all the tags within the max age range are built.  Looks like only the most recent tag on each branch gets built.

---
Originally reported by bhill_slac, imported from: No commit for max age generates build error each SCM Poll


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

Raw content of original issue

Branch specifier set to refs/tags/*

Max age used to only build recent tags.

If no tags within max age range, there is nothing to build, no jobs needed.

However, a job still gets created each SCM polling cycle which generates an error due to no commits found.

Git plugin 3.9.3

Email extension plugin 2.64

More info:

Same problem if I open up max age to include some tags, but the first jobs succeed in building the tags it found.  Then back to creating jobs w/ no valid tags.

Error message looks like this:

> git show-ref --tags -d # timeout=10
ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.

Something else is odd.   Not all the tags within the max age range are built.  Looks like only the most recent tag on each branch gets built.

  • environment: Jenkins Ver 2.150.2

1 attachment

- [config.xml](https://issues.jenkins.io/secure/attachment/46286/config.xml)

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.