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

Milestones preventing jobs from running

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • core, pipeline
    • None
    • Jenkins 2.150.1
      Unbuntu 16.04
      Jenkins running docker container (Docker version 17.05.0-ce, build 89658be)

      Jobs with milestones configured seem to randomly hang and never get past the first milestone.  Most are configured with a timeout and so they eventually fail with an output like 

      Started by user Elikem Gbanaglo (elikemg)
      Resume disabled by user, switching to high-performance, low-durability mode.
      [Pipeline] timeout
      Timeout set to expire in 2 hr 10 min
      [Pipeline]

      { [Pipeline] echo trying to get past milestone 0 [Pipeline] milestone Trying to pass milestone 0 [Pipeline] }

      [Pipeline] // timeout
      [Pipeline] echo
      [Pipeline] End of Pipeline

      The typical pattern being used by jobs is:

      timeout(time: 10, unit: 'MINUTES'){ 
        milestone()  
        lock(resource: "${env.JOB_NAME}", inversePrecedence: true) {
          node('master')

      {           // do something             }

           milestone()
         }
      }

      When we comment out the milestone steps, the jobs consistently run

      We have seen this error in the log, but are unsure if it is related

            Unassigned Unassigned
            mmresnick Matthew Resnick
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: