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/
                      '''
                  }
              }
          }
      }

        1. image-2024-04-01-17-19-28-904.png
          375 kB
          Ethan
        2. plugins.txt
          3 kB
          Mark Waite
        3. run-jenkins.sh
          0.8 kB
          Mark Waite

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

              Created:
              Updated:
              Resolved: