Details
-
Type:
Bug
-
Status: Open (View Workflow)
-
Priority:
Major
-
Resolution: Unresolved
-
Component/s: basic-branch-build-strategies-plugin
-
Labels:None
-
Similar Issues:
Description
Build strategy for tags is not working, if you specify ignore tags lesser than 7days
Multibranch pipeline configuration on Automated build tags, Used Build strategy plugin
Added Tags–> Ignore tags older than as 1 (Events :No automatic build triggered for 1..
)
it works only if you specify as 7 days older.(Anything less than 7 is ignoring automated build trigger for tag)
Is this the expected one? shall we have a tags to restrict to build automatically only if that is less than one day too?
The plugin uses annotated tag's commit timestamp instead of tag created timestamp and use it to compare with the value in the setting "Ignore tags older than".
Environment:
Jenkins v2.235.5
Basic Branch Build Strategies Plugin v1.3.2
Bitbucket v6.10.0
To Duplicate this issue,
1. Set "Ignore tags older than" to 3 and "Ignore tags newer than" to empty string in the project configuration
2. Create an annotated tag on a commit older than 3 days.
3. Observe that the tags tab creates a job for the created annotated tag but it doesn't build. It is expected to build, as the tag creation time is less than 3 days and as per the inline help message - "The number of days since the tag was created after which it is no longer eligible for automatic building".
4. The behavior is same on the annotated tags
I hope the expected behavior is to consider the tag creation time (not the associated commit time of the tag) for build strategy comparison.