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

Build number resets

    XMLWordPrintable

Details

    Description

      For some reason the previous 87 builds for the CodeTests_all/default (CodeTests (all branches) default) were removed and the counter resets to 1. We'd like to keep the history.

      Can the attached log file indicate what caused this? Please advise.

      Line 2895 Jun 24, 2016 3:08:11 PM hudson.model.Run execute
      Line 2896 INFO: CodeTests_all/default #92 main build action completed: SUCCESS
      ...
      Line 4261 Jun 26, 2016 6:30:54 AM hudson.model.Run execute
      Line 4262 INFO: CodeTests_all/default #1 main build action completed: SUCCESS
      

      Attachments

        Activity

          kpop kpop created issue -
          kpop kpop made changes -
          Field Original Value New Value
          Environment Jenkins 2.10 Jenkins 2.10, Multi-branch 0.4.2

          I did not see anything in the logs that showed the problem and I wasn't able to reproduce.

          The only thing I can think is that the branch was deleted, indexing occurred and removed the branch, and then the branch was re-added.

          Another possible circumstance may have been a connection failure when retrieving the branch list, so indexing removed them all. However, this should have bubbled up an exception before syncing the sub-projects.

          You can try setting your dead branch strategy to retain deleted branches for at least one day in the event that something goes missing and comes back.

          mjdetullio Matthew DeTullio added a comment - I did not see anything in the logs that showed the problem and I wasn't able to reproduce. The only thing I can think is that the branch was deleted, indexing occurred and removed the branch, and then the branch was re-added. Another possible circumstance may have been a connection failure when retrieving the branch list, so indexing removed them all. However, this should have bubbled up an exception before syncing the sub-projects. You can try setting your dead branch strategy to retain deleted branches for at least one day in the event that something goes missing and comes back.
          mjdetullio Matthew DeTullio made changes -
          Resolution Cannot Reproduce [ 5 ]
          Status Open [ 1 ] Resolved [ 5 ]
          kpop kpop added a comment -

          Thank you for the analysis, I'll try the suggested dead branch strategy.

          kpop kpop added a comment - Thank you for the analysis, I'll try the suggested dead branch strategy.
          kpop kpop made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 172938 ] JNJira + In-Review [ 210177 ]

          People

            mjdetullio Matthew DeTullio
            kpop kpop
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: