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

Build strategy for tags is not working, if you specify ignore tags lesser than 7days

      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?

        1. config.xml
          4 kB
          vinoth SS
        2. config.xml
          4 kB
          Mark Waite
        3. Screen Shot 2019-05-31 at 9.09.23.png
          21 kB
          vinoth SS
        4. Screen Shot 2019-05-31 at 9.00.22.png
          90 kB
          vinoth SS

          [JENKINS-57772] Build strategy for tags is not working, if you specify ignore tags lesser than 7days

          vinoth SS created issue -
          vinoth SS made changes -
          Attachment New: Screen Shot 2019-05-31 at 9.00.22.png [ 47536 ]
          vinoth SS made changes -
          Attachment New: Screen Shot 2019-05-31 at 9.09.23.png [ 47537 ]
          vinoth SS made changes -
          Description Original: 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 Automated build is scheduled to trigger)

          it works only if you specify as 7 days older.

           

          Is this the expected one? shall we have a tags to restrict to build automatically only if that is less than one day too?
          New: 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?
          Mark Waite made changes -
          Component/s New: basic-branch-build-strategies-plugin [ 23425 ]
          Component/s Original: branch-api-plugin [ 18621 ]
          Component/s Original: git-plugin [ 15543 ]
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]

          Mark Waite added a comment - - edited

          I am unable to duplicate the problem that you are describing. Please provide instructions to create the job which is showing the failure.

          Steps I took attempting to show the failure:

          1. Create a multibranch Pipeline job using the GitHub branch source
          2. Disable all default behaviors (no branch discovery, no pull request discovery)
          3. Add the "Discover tags" behavior
          4. Add the build strategy "Tags" with an empty value for Ignore tags newer than
          5. Change the "Tags" build strategy Ignore tags older than from its default 7 to 1
          6. Run the job, confirm that it selected no tags to be built and no branches to be built (because there have been no tags created on that repository in the last 1 day)

          The job definition I used is uploaded as config.xml

          Mark Waite added a comment - - edited I am unable to duplicate the problem that you are describing. Please provide instructions to create the job which is showing the failure. Steps I took attempting to show the failure: Create a multibranch Pipeline job using the GitHub branch source Disable all default behaviors (no branch discovery, no pull request discovery) Add the "Discover tags" behavior Add the build strategy "Tags" with an empty value for Ignore tags newer than Change the "Tags" build strategy Ignore tags older than from its default 7 to 1 Run the job, confirm that it selected no tags to be built and no branches to be built (because there have been no tags created on that repository in the last 1 day) The job definition I used is uploaded as config.xml
          Mark Waite made changes -
          Attachment New: config.xml [ 47538 ]

          vinoth SS added a comment -

          when you scan it is not detected tags less than 1 day, but can u create a new tag , It is detected but not triggered automated build.

          vinoth SS added a comment - when you scan it is not detected tags less than 1 day, but can u create a new tag , It is detected but not triggered automated build.

          Mark Waite added a comment -

          I'm not sure I understand your statement.

          I added a new tag called 'temp-tag-a' and then clicked the link to scan the repository. The new tag was detected by the scan and a new build was scheduled.

          I removed the new tag called 'temp-tag-a' and then clicked the link to scan the repository. The deletion of the tag was detected and the job for temp-tag-a was deleted.

          Please provide numbered steps to recreate the problem you are seeing. Others cannot help you if they cannot duplicate the problem you're seeing.

          Mark Waite added a comment - I'm not sure I understand your statement. I added a new tag called 'temp-tag-a' and then clicked the link to scan the repository. The new tag was detected by the scan and a new build was scheduled. I removed the new tag called 'temp-tag-a' and then clicked the link to scan the repository. The deletion of the tag was detected and the job for temp-tag-a was deleted. Please provide numbered steps to recreate the problem you are seeing. Others cannot help you if they cannot duplicate the problem you're seeing.

            Unassigned Unassigned
            ss_vinoth22 vinoth SS
            Votes:
            3 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated: