Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-68807

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor 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

      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 

       

          [JENKINS-68807] "Ignore tags older than" field appears to be using the commit creation date rather than the tag creation date

          There are no comments yet on this issue.

            Unassigned Unassigned
            hchu Harry Chu
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: