Jenkins 具有平行级的詹金斯管道“原因”;这一过程显然从未开始”;错误

Jenkins 具有平行级的詹金斯管道“原因”;这一过程显然从未开始”;错误,jenkins,jenkins-pipeline,jenkins-plugins,Jenkins,Jenkins Pipeline,Jenkins Plugins,我试图建立一个Jenkins管道(使用声明性语法),在两个独立的、按需的AWSEC2实例上运行单元测试和功能测试。当在单个实例上运行并且没有并行阶段时,管道可以完美地工作。一旦切换到并行阶段,任何shell脚本都会失败,并显示以下神秘消息: 这一过程显然从未在年开始 /home/admin/workspace/GSWebRuby_Test@tmp/耐用-b0d8c4b4(运行 詹金斯暂时和我在一起 -Dorg.jenkinsci.plugins.durabletask.BourneShellSc

我试图建立一个Jenkins管道(使用声明性语法),在两个独立的、按需的AWSEC2实例上运行单元测试和功能测试。当在单个实例上运行并且没有并行阶段时,管道可以完美地工作。一旦切换到并行阶段,任何shell脚本都会失败,并显示以下神秘消息:

这一过程显然从未在年开始 /home/admin/workspace/GSWebRuby_Test@tmp/耐用-b0d8c4b4(运行 詹金斯暂时和我在一起 -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH\u DIAGNOSTICS=true (可能会让问题更清楚)

我在谷歌上搜索了很多地方,发现了一些关于这条消息的bug报告。我正在使用最新版本的插件v。1.33并且所有问题似乎都不适用于我的情况,例如,在不寻常的体系结构上或在运行Docker容器时出现故障。我还关闭并重新升级了插件(在版本1.30和1.33之间切换)。另外,为了重新迭代,
sh
命令在我不使用
并行
阶段时可以正常工作

我已经创建了一个简化的管道来调试这个问题。请注意,shell命令也很简单,例如“env | sort”或“pwd”

这是控制台输出:

Running in Durability level: MAX_SURVIVABILITY
[Pipeline] Start of Pipeline
[Pipeline] withCredentials
Masking supported pattern matches of $DB_PASS or $DB_USER
[Pipeline] {
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Setup)
[Pipeline] parallel
[Pipeline] { (Branch: foo)
[Pipeline] { (Branch: bar)
[Pipeline] stage
[Pipeline] { (foo)
[Pipeline] stage
[Pipeline] { (bar)
[Pipeline] node
[Pipeline] node
Still waiting to schedule task
All nodes of label ‘jenkins-slave-ondemand’ are offline
Still waiting to schedule task
All nodes of label ‘jenkins-slave-ondemand’ are offline
Running on EC2 (Jenkins AWS EC2) - Jenkins slave (i-0982299c572100c71) in /home/admin/workspace/GSWebRuby_Test
[Pipeline] {
[Pipeline] echo
In stage foo
[Pipeline] sh
Running on EC2 (Jenkins AWS EC2) - Jenkins slave (i-092ecac8e6c257270) in /home/admin/workspace/GSWebRuby_Test
[Pipeline] {
[Pipeline] echo
In stage bar
[Pipeline] sh
process apparently never started in /home/admin/workspace/GSWebRuby_Test@tmp/durable-b0d8c4b4
(running Jenkins temporarily with -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true might make the problem clearer)
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
Failed in branch foo
process apparently never started in /home/admin/workspace/GSWebRuby_Test@tmp/durable-b6cfcff9
(running Jenkins temporarily with -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true might make the problem clearer)
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
Failed in branch bar
[Pipeline] // parallel
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] End of Pipeline
ERROR: script returned exit code -2
Finished: FAILURE
我在设置管道的过程中是否做错了什么?任何指点都将不胜感激

编辑

设置此
JENKINS\u JAVA\u选项后
org.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH\u DIAGNOSTICS=true
,我看到了以下额外输出:

In stage bar
[Pipeline] sh
nohup: failed to run command 'sh': No such file or directory
process apparently never started in /home/admin/workspace/GSWebRuby_Test@tmp/durable-099a2e56
In stage bar
[Pipeline] sh
nohup: failed to run command 'sh': No such file or directory
process apparently never started in /home/admin/workspace/GSWebRuby_Test@tmp/durable-099a2e56