Durable task plugin: script is deleted before execution

I have z/OS Jenkins agent and am attempting to execute a dependency build script using the IBM GitHub based dbb utilities. Utilizing the near out of the box Jenkinsfile. When we get to the step to call the script, which uses the durable task plugin.

In the Jenkins file, the following lines are executed:

					BuildCmd = "dbbBuild.sh -w ${BuildDir} -a ${AppName} -b ${AppBranch} -p ${PipelineType} -q ${AppHLQ} ${zAppBuildVerbose}"
					println("${PipelineName}[INFO]: Build Command = ${BuildCmd}")
				
					Buildrc = sh(script: "${BuildCmd}", returnStatus: true)

In the console log, I see the following output:

[Pipeline] sh (zBuilder) + /global/dbb/pipelineScripts/Common-Backend-Scripts/zBuilder.sh -w /global/dbb/jenkins/workspace/zSandbox_MIS -a -b release -p build -q JNKINSZ.PIPELINE -v /global/dbb/pipelineScripts/Common-Backend-Scripts/zBuilder.sh: /global/dbb/jenkins/workspace/zSandbox_MIS@tmp/durable-f94e425b/script.sh.copy 1: FSUM9209 cannot execute: reason code = 053b006c: EDC5129I No such file or directory.

It appears the global/dbb/jenkins/workspace/zSandbox_MIS@tmp/durable-f94e425b/script.sh.copy either never gets written or gets deleted before it can execute. I can see the file (if ever so briefly) get created, but it immediately disappears.

The SSH agent has full ownership of the directory its writing to as well as the parent directory. I’ve also confirmed the /global/dbb/pipelineScripts/Common-Backend-Scripts/zBuilder.sh is executable, and I can execute it when logged in with the Jenkins SSH ID.

I’d appreciate any ideas that anyone has here.

Jenkins setup:

  • Jenkins server 2.462.2 running on x86
  • Jenkins ssh remoting agent running on z/OS 3.1.
  • Bash/Git/Vim is part of the IBM Open Enterprise Foundation tools.
  • Dependency Based Build 3.0.2