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

[sh command] Job hangs when the pipeline scripts runs simple sh command

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • pipeline
    • None
    • Pipeline script runs on Mac OS slave

      I have in my Jenkins job a simple Jenkinsfile script that looks as follow:

       

       

      pipeline {
          agent {
              label 'boaz-mac-machine'
          }
           stages {
              stage('Setup automation framework') {
                  steps {
                      echo 'before bash command'
                      sh "ls"
                      echo 'after bash command'
                  }
              }
          }
      }
      

       

       

      The problem is that the pipeline stuck/hang on the line where I call sh "ls".

      My slave machine is a Mac OS 

          [JENKINS-64027] [sh command] Job hangs when the pipeline scripts runs simple sh command

          Hi timja, can you please help me with the issue above? 
          I am stuck on it for already 4 days, and its quite simple thing I think. 

          Boaz Warshawsky added a comment - Hi timja , can you please help me with the issue above?  I am stuck on it for already 4 days, and its quite simple thing I think. 

          Kunal added a comment -

          2020 bug still open? I am also facing the same issue. The job gets stuck when run from Jenkins, running the steps from terminal works perfectly fine.

          Kunal added a comment - 2020 bug still open? I am also facing the same issue. The job gets stuck when run from Jenkins, running the steps from terminal works perfectly fine.

            Unassigned Unassigned
            boaz_warshawsky Boaz Warshawsky
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: