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

    Details

    • Similar Issues:

      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

          Activity

          Hide
          aikatz Alex Katz added a comment - - edited

          I'm encountering the same error message on Ubuntu 18.04 except it seems to be breaking a git checkout step (checkout scm) and possibly other sh steps, not in a docker container. Also running durable-task v1.33 but also running lots of other plugins and I haven't tried reproducing the issue on clean system yet.

          Update: Rebuilt Jenkins (with the same plugins and configuration) and now all of the pipelines work as expected, not sure what was causing it to break before.

          Show
          aikatz Alex Katz added a comment - - edited I'm encountering the same error message on Ubuntu 18.04 except it seems to be breaking a git checkout step ( checkout scm ) and possibly other sh steps, not in a docker container. Also running durable-task v1.33 but also running lots of other plugins and I haven't tried reproducing the issue on clean system yet. Update: Rebuilt Jenkins (with the same plugins and configuration) and now all of the pipelines work as expected, not sure what was causing it to break before.
          Hide
          carroll Carroll Chiou added a comment -

          Just noting that the title is a bit misleading. If I read this right, it looks like you have a failed shell step and that it has not been working on 1.29, 1.30, and 1.33. It's not that the upgrade to 1.33 has broken your pipeline correct?

          Is there any way you can run your pipeline again with org.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true and posting the output here? That might give a better idea of what's going on.

          Show
          carroll Carroll Chiou added a comment - Just noting that the title is a bit misleading. If I read this right, it looks like you have a failed shell step and that it has not been working on 1.29, 1.30, and 1.33. It's not that the upgrade to 1.33 has broken your pipeline correct? Is there any way you can run your pipeline again with org.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true and posting the output here? That might give a better idea of what's going on.

            People

            • Assignee:
              csanchez Carlos Sanchez
              Reporter:
              srinidhisivakumar srinidhi Sivakumar
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: