gpt4 book ai didi

docker - 停留在 'sh' 阶段,然后 Process 显然从未在/home/jenkins/jenkins/workspace/中启动

转载 作者:行者123 更新时间:2023-12-02 18:13:40 25 4
gpt4 key购买 nike

“mvn clean”阶段卡住了一段时间并导致以下错误:

[Pipeline] sh
process apparently never started in /home/jenkins/jenkins/workspace/<MyProject>@tmp/durable-8e4de4ec
(running Jenkins temporarily with -D
org.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true might make the problem
clearer)
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code -2
Finished: FAILURE

这是我的 jenkinsfile 脚本:

pipeline{
agent{
label 'DOCKER'
}
tools {
maven 'M3'
jdk 'JAVA_HOME'
}
stages{
stage('build'){
steps{
echo 'Running Build Phase'
sh 'mvn clean'
}
}
}
}

不确定我是否需要更新任何配置。我已经用更新的 open-jdk 版本更新了/etc/init.d/jenkins。

enter image description here

最佳答案

我遇到了同样的问题,发现如果您转到“管理 Jenkins”->“配置系统”,“全局属性”部分中将有一个空的环境变量。只需删除该变量即可解决问题。

关于docker - 停留在 'sh' 阶段,然后 Process 显然从未在/home/jenkins/jenkins/workspace/中启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58848793/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com