"Ignore tags older than" field appears to be using the commit creation date rather than the tag creation date

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      "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

      1. Spin up a Jenkins server and install "basic-branch-build-strategies-plugin"
      2. Create a multibranch pipeline and point it to a Git repo
      3. Select "Build Strategies" > "Tags"
      4. Set "Ignore tags older than" field to 1
      5. Save this configuration
      6. On the Github repo, create a new tag for the initial commit (or any commit older than 1 day)
      7. 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 

       

            Assignee:
            Unassigned
            Reporter:
            Harry Chu
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: