-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
OS: Ubuntu 20.04 64 bit
openjdk 11.0.15 2022-04-19
Jenkins: 2.332.3
basic-branch-build-strategies:1.3.2
"Ignore tags older than" field appears to be using the commit creation date rather than the tag creation date. This issue happens when you create a new tag on an old commit.
Steps to reproduce
- Spin up a Jenkins server and install "basic-branch-build-strategies-plugin"
- Create a multibranch pipeline and point it to a Git repo
- Select "Build Strategies" > "Tags"
- Set "Ignore tags older than" field to 1
- Save this configuration
- On the Github repo, create a new tag for the initial commit (or any commit older than 1 day)
- Run the pipeline created in step 2
Expected Results
Jenkins schedules a build for the tag because the tag is not older than 1 day.
Checking tag v1.0.0 ‘Jenkinsfile’ found Met criteria Changes detected: v1.0.0 (null → dca3db5e0ee45c6ccc87e6d2423b00d0f237e87a) Scheduled build for branch: v1.0.0
Actual Results
The build is skipped despite the tag being less than 1 day old. This is likely due to the commit being older than 1 day.
Checking tag v1.0.0
‘Jenkinsfile’ found
Met criteria
No automatic build triggered for v1.0.0
- duplicates
-
JENKINS-57772 Build strategy for tags is not working, if you specify ignore tags lesser than 7days
- Open