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

cleanup milestone build counter on build history purge

      We have a scenario where we purge the build history of the branch completely in order to reset the  build number to 1. We need this as we are moving to the next major version and the minor version corresponds to the build number and has to be reset to 1.

       

      But on doing this in our multi branch pipeline the the build history gets purged and the build number becomes 1 but the milestone step plugin still remembers that a build with greater number has crossed the milestone and the job gets canceld/failed.

       

      Requesting the feature where on purging the entire build history of a branch the build counter of milestone step plugin shoudl be reset to 1.

          [JENKINS-64642] cleanup milestone build counter on build history purge

          Thierry added a comment -

          Just ran into the same issue, anyone have any idea if there is a workaround (apart from manually trying to update the file with proper last build number...), in our case it was due to a restored backup that didn't contained the "nextBuildNumber" as this is optional in "ThinBackup".

           

          Thierry added a comment - Just ran into the same issue, anyone have any idea if there is a workaround (apart from manually trying to update the file with proper last build number...), in our case it was due to a restored backup that didn't contained the "nextBuildNumber" as this is optional in "ThinBackup".  

            amuniz Antonio Muñiz
            sradhakrishnan sathyamoorthy radhakrishnan
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: