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

sh steps on slaves randomly hang when complete

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • pipeline
    • None
    • jenkins master & slaves inside docker containers all on the same linux server
      Workflow 1.10.1
      Jenkins ver. 1.625.1

      sh steps that succeed are sometimes hanging

      on http://agility-test.local/job/team_romeo_dev/4/console I see

      ...
      Running: Allocate node : Body : End                                             
      Running: Allocate node : End                                                    
      Running: Allocate node : Start                                                  
      Running on qibuild-linux64 in /home/jenkins/jenkins/workspace/team_romeo_dev    
      Running: Allocate node : Body : Start                                           
      Running: Determine Current Directory                                            
      Running: Shell Script                                                           
      [team_romeo_dev] Running shell script                                           
      + qibuild add-config linux64_debug -t linux64                                   
      

      and it hangs there forever. Here is the corresponding part of the workflow

        ...
        node("qibuild-linux64") {
          configs = []
          if (params.run_linux64_debug) {
            configs << 'linux64_debug'
          }
          if (params.run_linux64_release) {
            configs << 'linux64_release'
          }
          workspace = pwd()
          for (int i = 0; i < configs.size(); ++i) {
            String config = configs[i]
            sh "qibuild add-config ${config} -t linux64"
            def p = projects.all()
            configure(c, config, p)
            make(c, config, p)
            String test_dir = "test-${config}"
            String test_dir_full = "${workspace}/${test_dir}"
            test(c, config, p, test_dir_full)
            step([$class: 'JUnitResultArchiver', testResults: "${test_dir}/*/test-results/*.xml"])
            String test_archive = "${test_dir}.tgz"
            sh "tar -czf ${test_archive} ${test_dir}"
            step([$class: 'ArtifactArchiver', artifacts: test_archive])
          }
          ...
      

      I does seem similar to https://issues.jenkins-ci.org/browse/JENKINS-28759

      I'm not sure how to help nailing this issue.

      I got thread dumps in case it helps:

      I then added a org.jenkinsci.plugins.workflow.steps.durable_task and will hopefully have more information next time it occurs.

            jglick Jesse Glick
            sbarthelemy Sébastien Barthélémy
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: