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

Pipeline job hung after restart

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: pipeline
    • Labels:
      None
    • Environment:
      2.273
    • Similar Issues:

      Description

      I can reproduce it fairly consistently with, make sure that some stages are running and then restart:

      pipeline {
          agent none
          stages {
              stage('BuildAndTest') {
                  matrix {
                      agent any
                      axes {
                          axis {
                              name 'PLATFORM'
                              values 'linux', 'windows', 'mac'
                          }
                          axis {
                              name 'BROWSER'
                              values 'firefox', 'chrome', 'safari', 'edge'
                          }
                      }
                      stages {
                          stage('Build') {
                              steps {
                                  echo "Do Build for ${PLATFORM} - ${BROWSER}"
                              }
                          }
                          stage('Test') {
                              steps {
                                  echo "Do Test for ${PLATFORM} - ${BROWSER}"
                              }
                          }
                      }
                  }
              }
          }
      }
      

      Thread dump in https://gist.github.com/timja/6faee5e4876a8c7f5235563dc865c76e if it helps

        Attachments

          Activity

          Hide
          dnusbaum Devin Nusbaum added a comment - - edited

          Tim Jacomb If you can upload the build folder of the Pipeline while it is stuck along with the Jenkins system logs from right before and after the restart, that should be everything. In the thread dumps I just see a bunch of threads stuck calling CpsFlowExecution.programPromise.get() in CpsStepContext.getThreadGroupSynchronously, so my guess is that something went wrong with loading the Pipeline after the restart.

          Show
          dnusbaum Devin Nusbaum added a comment - - edited Tim Jacomb  If you can upload the build folder of the Pipeline while it is stuck along with the Jenkins system logs from right before and after the restart, that should be everything. In the thread dumps I just see a bunch of threads stuck calling  CpsFlowExecution.programPromise.get() in  CpsStepContext.getThreadGroupSynchronously , so my guess is that something went wrong with loading the Pipeline after the restart.
          Hide
          timja Tim Jacomb added a comment -

          Any other information I can get that would be helpful or additional debug info I could add Devin Nusbaum / Jesse Glick ?

          Show
          timja Tim Jacomb added a comment - Any other information I can get that would be helpful or additional debug info I could add Devin Nusbaum / Jesse Glick ?

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            timja Tim Jacomb
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: