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

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

XMLWordPrintable

    • 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 

            Unassigned Unassigned
            boaz_warshawsky Boaz Warshawsky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: