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

Version 4.451 pipeline plug-in cannot execute sh command

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • pipeline
    • None
    • v4.451

      When I upgraded the Jenkins version to 4.451, I found that the pipeline would time out when executing the sh command, and the following error was reported. When I rolled back to the lower version 4.440, this phenomenon became normal.
      I started it via docker container.
      The echo command is normal, only the sh 'command' form cannot be executed.

      pipeline script:
      pipeline {
          agent any
          stages {
              stage('Hello') {
                  steps {
                      sh "echo 'hello'"
                      sh "whoami"
                      sh '''
                      ls /usr/local/
                      '''
                  }
              }
          }
      }

            Unassigned Unassigned
            ethan_622 Ethan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: