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

Jenkins should try to recreate the nextBuildNumber file in the job's directory

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
    • Environment:
      Jenkins ver. 1.609.3
    • Similar Issues:

      Description

      I keep my job's config.xml files in a SVN repository. 

       

      Once I messed up the copy of the SVN on the Jenkins master so I decided to run a SVN cleanup. I also checked to option to delete unversioned files in my TortoiseSVN GUI. 

      I did not keep in mind that the "nextBuildNumber" files of the jobs weren't versioned.

      However, when the jobs ran the next time, the executors on which they were started died because of the buildnumber starting again at 1 while it had been higher before. 

       

      I think that when the nextBuildNumber file for a job is missing and there still are Build Log folders with higher build numbers, that Jenkins should recalculate the number based upon the highest number (adding +1) of the build log folders.

        Attachments

          Activity

          Hide
          danielbeck Daniel Beck added a comment -

          Not sure I agree. And you might be relying on Jenkins not reusing build numbers and regularly manually delete builds, in that case being informed of the problem through failures is preferable over silently reusing build numbers. This situation is basically so messed up that no graceful recovery is possible.

          Show
          danielbeck Daniel Beck added a comment - Not sure I agree. And you might be relying on Jenkins not reusing build numbers and regularly manually delete builds, in that case being informed of the problem through failures is preferable over silently reusing build numbers. This situation is basically so messed up that no graceful recovery is possible.

            People

            • Assignee:
              Unassigned
              Reporter:
              spiderfox Christian H
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: