Version 4.451 pipeline plug-in cannot execute sh command

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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

            Assignee:
            Unassigned
            Reporter:
            Ethan
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: