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

      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

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

              Created:
              Updated:
              Resolved: