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

durable-task v1.33 breaks sh steps in pipeline when running in a Docker container

    XMLWordPrintable

Details

    Description

      Tested on Durable Task Plugin v. 1.29 & v. 1.30 wasn't worked.

      Durable Task Plugin has been "updated to v. 1.33". Still the problem isn't resolved.

       

      PIPELINE:

      pipeline {
          agent {
               docker

      {             label 'buildserver'             image 'busybox'             args '-v /var/lib/jenkins/caches:/jenkins/caches'            args '-v /var/lib/jenkins/workspace:/jenkins/workspace'            args '-u root'                  }

                  }
         stages {
            stage ("Test sh script in container") {
               steps

      {              sh label: 'Echo "Hello World...', script: 'echo "Hello World!"'                            }

                        }
                  }
          }

       

      ERROR:
      [Pipeline] Start of Pipeline

      [Pipeline] nodeRunning on buildserver in c:/jenkins/workspace/<project-name>

      [Pipeline] {

      [Pipeline] stage

      [Pipeline]

      { (Declarative: Checkout SCM) [Pipeline] checkout [Pipeline] }

      [Pipeline] // stage

      [Pipeline] withEnv

      [Pipeline]

      { [Pipeline] isUnix[Pipeline] sh process apparently never started in c:/jenkins/workspace/<project-name>@tmp/durable-73ba6e89 (running Jenkins temporarily with -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true might make the problem clearer) [Pipeline] }

      [Pipeline] // withEnv

      [Pipeline] }

      [Pipeline] // node

      [Pipeline] End of Pipeline

      ERROR: script returned exit code -2
      Finished: FAILURE

      Attachments

        Issue Links

          Activity

            srinidhisivakumar srinidhi Sivakumar created issue -
            srinidhisivakumar srinidhi Sivakumar made changes -
            Field Original Value New Value
            Description *Tested on Durable Task Plugin v. 1.29 & v. 1.30 wasn't worked.*

             ** *Durable Task Plugin has been* *"updated to v. 1.33". Still the problem isn't resolved.***

             

            PIPELINE:

            pipeline {
                agent {
                     docker {
                           label 'buildserver'
                           image 'busybox'
                           args '-v /var/lib/jenkins/caches:/jenkins/caches'
                           args '-v /var/lib/jenkins/workspace:/jenkins/workspace'
                           args '-u root'
                                 }
                         }
               stages {
                  stage("Test sh script in container") {
                     steps {
                         sh label: 'Echo "Hello World...', script: 'echo "Hello World!"'
                                      }
                              }
                        }
                }

             

            *ERROR:*
            [Pipeline] Start of Pipeline[Pipeline] nodeRunning on [buildserver|http://192.168.8.247:8081/computer/contusbuildserver/] in c:/jenkins/workspace/<project-name>[Pipeline] {[Pipeline] stage[Pipeline] { (Declarative: Checkout SCM)[Pipeline] checkout[Pipeline] }[Pipeline] // stage[Pipeline] withEnv[Pipeline] {[Pipeline] isUnix[Pipeline] sh*process apparently never started in c:/jenkins/workspace/<project-name>@tmp/durable-73ba6e89
            (running Jenkins temporarily with -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true might make the problem clearer)*
            [Pipeline] }[Pipeline] // withEnv[Pipeline] }[Pipeline] // node[Pipeline] End of PipelineERROR: script returned exit code -2
            Finished: FAILURE
            Tested on Durable Task Plugin v. 1.29 & v. 1.30 wasn't worked.

            Durable Task Plugin has been "updated to v. 1.33". Still the problem isn't resolved.

             

            *PIPELINE:*

            pipeline {
                 agent {
                      docker {                

                           label 'buildserver'                

                           image 'busybox'                

                           args '-v /var/lib/jenkins/caches:/jenkins/caches'                

                           args '-v /var/lib/jenkins/workspace:/jenkins/workspace'                

                          args '-u root'                      

                                      }

                         }
                stages {
                   stage ("Test sh script in container") {
                      steps {              

                         sh label: 'Echo "Hello World...', script: 'echo "Hello World!"'           

                                   }

                              }
                         }
                 }

             

            *ERROR:*
             [Pipeline] Start of Pipeline[Pipeline] nodeRunning on [buildserver|http://192.168.8.247:8081/computer/contusbuildserver/] in c:/jenkins/workspace/<project-name>[Pipeline] {[Pipeline] stage[Pipeline]

            { (Declarative: Checkout SCM)[Pipeline] checkout[Pipeline] }

            [Pipeline] // stage[Pipeline] withEnv[Pipeline]

            {[Pipeline] isUnix[Pipeline] sh*process apparently never started in c:/jenkins/workspace/<project-name>@tmp/durable-73ba6e89 (running Jenkins temporarily with -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true might make the problem clearer)* [Pipeline] }

            [Pipeline] // withEnv[Pipeline] }[Pipeline] // node[Pipeline] End of PipelineERROR: script returned exit code -2
             Finished: FAILURE
            srinidhisivakumar srinidhi Sivakumar made changes -
            Description Tested on Durable Task Plugin v. 1.29 & v. 1.30 wasn't worked.

            Durable Task Plugin has been "updated to v. 1.33". Still the problem isn't resolved.

             

            *PIPELINE:*

            pipeline {
                 agent {
                      docker {                

                           label 'buildserver'                

                           image 'busybox'                

                           args '-v /var/lib/jenkins/caches:/jenkins/caches'                

                           args '-v /var/lib/jenkins/workspace:/jenkins/workspace'                

                          args '-u root'                      

                                      }

                         }
                stages {
                   stage ("Test sh script in container") {
                      steps {              

                         sh label: 'Echo "Hello World...', script: 'echo "Hello World!"'           

                                   }

                              }
                         }
                 }

             

            *ERROR:*
             [Pipeline] Start of Pipeline[Pipeline] nodeRunning on [buildserver|http://192.168.8.247:8081/computer/contusbuildserver/] in c:/jenkins/workspace/<project-name>[Pipeline] {[Pipeline] stage[Pipeline]

            { (Declarative: Checkout SCM)[Pipeline] checkout[Pipeline] }

            [Pipeline] // stage[Pipeline] withEnv[Pipeline]

            {[Pipeline] isUnix[Pipeline] sh*process apparently never started in c:/jenkins/workspace/<project-name>@tmp/durable-73ba6e89 (running Jenkins temporarily with -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true might make the problem clearer)* [Pipeline] }

            [Pipeline] // withEnv[Pipeline] }[Pipeline] // node[Pipeline] End of PipelineERROR: script returned exit code -2
             Finished: FAILURE
            Tested on Durable Task Plugin v. 1.29 & v. 1.30 wasn't worked.

            Durable Task Plugin has been "updated to v. 1.33". Still the problem isn't resolved.

             

            *PIPELINE:*

            pipeline {
                 agent {
                      docker {

                                           label 'buildserver'

                                           image 'busybox'

                                           args '-v /var/lib/jenkins/caches:/jenkins/caches'

                                           args '-v /var/lib/jenkins/workspace:/jenkins/workspace'

                                          args '-u root'

                                   }

                        }
                stages {
                   stage ("Test sh script in container") {
                      steps {

                                       sh label: 'Echo "Hello World...', script: 'echo "Hello World!"'

                                       }

                              }
                         }
                 }

             

            *ERROR:*
             [Pipeline] Start of Pipeline

            [Pipeline] nodeRunning on [buildserver|http://192.168.8.247:8081/computer/contusbuildserver/] in c:/jenkins/workspace/<project-name>

            [Pipeline] {

            [Pipeline] stage

            [Pipeline]

            { (Declarative: Checkout SCM)

            [Pipeline] checkout

            [Pipeline] }

            [Pipeline] // stage

            [Pipeline] withEnv

            [Pipeline]{

            [Pipeline] isUnix[Pipeline] sh process apparently never started in c:/jenkins/workspace/<project-name>@tmp/durable-73ba6e89 (running Jenkins temporarily with -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true might make the problem clearer)

            [Pipeline] }

            [Pipeline] // withEnv

            [Pipeline] }

            [Pipeline] // node

            [Pipeline] End of Pipeline

            ERROR: script returned exit code -2
             Finished: FAILURE
            srinidhisivakumar srinidhi Sivakumar made changes -
            Description Tested on Durable Task Plugin v. 1.29 & v. 1.30 wasn't worked.

            Durable Task Plugin has been "updated to v. 1.33". Still the problem isn't resolved.

             

            *PIPELINE:*

            pipeline {
                 agent {
                      docker {

                                           label 'buildserver'

                                           image 'busybox'

                                           args '-v /var/lib/jenkins/caches:/jenkins/caches'

                                           args '-v /var/lib/jenkins/workspace:/jenkins/workspace'

                                          args '-u root'

                                   }

                        }
                stages {
                   stage ("Test sh script in container") {
                      steps {

                                       sh label: 'Echo "Hello World...', script: 'echo "Hello World!"'

                                       }

                              }
                         }
                 }

             

            *ERROR:*
             [Pipeline] Start of Pipeline

            [Pipeline] nodeRunning on [buildserver|http://192.168.8.247:8081/computer/contusbuildserver/] in c:/jenkins/workspace/<project-name>

            [Pipeline] {

            [Pipeline] stage

            [Pipeline]

            { (Declarative: Checkout SCM)

            [Pipeline] checkout

            [Pipeline] }

            [Pipeline] // stage

            [Pipeline] withEnv

            [Pipeline]{

            [Pipeline] isUnix[Pipeline] sh process apparently never started in c:/jenkins/workspace/<project-name>@tmp/durable-73ba6e89 (running Jenkins temporarily with -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true might make the problem clearer)

            [Pipeline] }

            [Pipeline] // withEnv

            [Pipeline] }

            [Pipeline] // node

            [Pipeline] End of Pipeline

            ERROR: script returned exit code -2
             Finished: FAILURE
            Tested on Durable Task Plugin v. 1.29 & v. 1.30 wasn't worked.

            Durable Task Plugin has been "updated to v. 1.33". Still the problem isn't resolved.

             

            *PIPELINE:*

            pipeline {
                 agent {
                      docker {

                         label 'buildserver'

                         image 'busybox'

                         args '-v /var/lib/jenkins/caches:/jenkins/caches'

                        args '-v /var/lib/jenkins/workspace:/jenkins/workspace'

                        args '-u root'

                                   }

                        }
                stages {
                   stage ("Test sh script in container") {
                      steps {

                         sh label: 'Echo "Hello World...', script: 'echo "Hello World!"'

                                       }

                              }
                         }
                 }

             

            *ERROR:*
             [Pipeline] Start of Pipeline

            [Pipeline] nodeRunning on [buildserver|http://192.168.8.247:8081/computer/contusbuildserver/] in c:/jenkins/workspace/<project-name>

            [Pipeline] {

            [Pipeline] stage

            [Pipeline]

            { (Declarative: Checkout SCM) [Pipeline] checkout [Pipeline] }

            [Pipeline] // stage

            [Pipeline] withEnv

            [Pipeline]

            { [Pipeline] isUnix[Pipeline] sh process apparently never started in c:/jenkins/workspace/<project-name>@tmp/durable-73ba6e89 (running Jenkins temporarily with -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true might make the problem clearer) [Pipeline] }

            [Pipeline] // withEnv

            [Pipeline] }

            [Pipeline] // node

            [Pipeline] End of Pipeline

            ERROR: script returned exit code -2
             Finished: FAILURE
            srinidhisivakumar srinidhi Sivakumar made changes -
            Description Tested on Durable Task Plugin v. 1.29 & v. 1.30 wasn't worked.

            Durable Task Plugin has been "updated to v. 1.33". Still the problem isn't resolved.

             

            *PIPELINE:*

            pipeline {
                 agent {
                      docker {

                         label 'buildserver'

                         image 'busybox'

                         args '-v /var/lib/jenkins/caches:/jenkins/caches'

                        args '-v /var/lib/jenkins/workspace:/jenkins/workspace'

                        args '-u root'

                                   }

                        }
                stages {
                   stage ("Test sh script in container") {
                      steps {

                         sh label: 'Echo "Hello World...', script: 'echo "Hello World!"'

                                       }

                              }
                         }
                 }

             

            *ERROR:*
             [Pipeline] Start of Pipeline

            [Pipeline] nodeRunning on [buildserver|http://192.168.8.247:8081/computer/contusbuildserver/] in c:/jenkins/workspace/<project-name>

            [Pipeline] {

            [Pipeline] stage

            [Pipeline]

            { (Declarative: Checkout SCM) [Pipeline] checkout [Pipeline] }

            [Pipeline] // stage

            [Pipeline] withEnv

            [Pipeline]

            { [Pipeline] isUnix[Pipeline] sh process apparently never started in c:/jenkins/workspace/<project-name>@tmp/durable-73ba6e89 (running Jenkins temporarily with -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true might make the problem clearer) [Pipeline] }

            [Pipeline] // withEnv

            [Pipeline] }

            [Pipeline] // node

            [Pipeline] End of Pipeline

            ERROR: script returned exit code -2
             Finished: FAILURE
            Tested on Durable Task Plugin v. 1.29 & v. 1.30 wasn't worked.

            Durable Task Plugin has been "updated to v. 1.33". Still the problem isn't resolved.

             

            *PIPELINE:*

            pipeline {
                 agent {
                      docker {

                        label 'buildserver'

                        image 'busybox'

                        args '-v /var/lib/jenkins/caches:/jenkins/caches'

                       args '-v /var/lib/jenkins/workspace:/jenkins/workspace'

                       args '-u root'

                             }

                        }
                stages {
                   stage ("Test sh script in container") {
                      steps

            {              sh label: 'Echo "Hello World...', script: 'echo "Hello World!"'                            }

                              }
                         }
                 }

             

            *ERROR:*
             [Pipeline] Start of Pipeline

            [Pipeline] nodeRunning on [buildserver|http://192.168.8.247:8081/computer/contusbuildserver/] in c:/jenkins/workspace/<project-name>

            [Pipeline] {

            [Pipeline] stage

            [Pipeline]{ (Declarative: Checkout SCM)

            [Pipeline] checkout

            [Pipeline] }

            [Pipeline] // stage

            [Pipeline] withEnv

            [Pipeline]

            { [Pipeline] isUnix[Pipeline] sh process apparently never started in c:/jenkins/workspace/<project-name>@tmp/durable-73ba6e89 (running Jenkins temporarily with -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true might make the problem clearer) [Pipeline] }

            [Pipeline] // withEnv

            [Pipeline] }

            [Pipeline] // node

            [Pipeline] End of Pipeline

            ERROR: script returned exit code -2
             Finished: FAILURE
            pjdarton pjdarton made changes -
            Component/s docker-workflow-plugin [ 20625 ]
            Component/s docker-plugin [ 18724 ]
            carroll Carroll Chiou made changes -
            Link This issue is caused by JENKINS-52264 [ JENKINS-52264 ]
            carroll Carroll Chiou made changes -
            Resolution Won't Fix [ 2 ]
            Status Open [ 1 ] Closed [ 6 ]
            carroll Carroll Chiou made changes -
            Assignee Carlos Sanchez [ csanchez ] Carroll Chiou [ carroll ]
            Resolution Won't Fix [ 2 ]
            Status Closed [ 6 ] Reopened [ 4 ]
            carroll Carroll Chiou made changes -
            Link This issue duplicates JENKINS-52264 [ JENKINS-52264 ]
            carroll Carroll Chiou made changes -
            Resolution Duplicate [ 3 ]
            Status Reopened [ 4 ] Closed [ 6 ]

            People

              carroll Carroll Chiou
              srinidhisivakumar srinidhi Sivakumar
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: