这是在尝试运行管道时出现的错误。
process apparently never started in /var/jenkins_home/workspace/AsadJ@2@tmp/durable-2744819c
(running Jenkins temporarily with -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true might make the problem clearer)这是我的詹金斯管道
pipeline {
agent {
docker { image 'ubuntu:latest' }
}
environment {
dockerImage =''
registry = 'XYZ'
registryCredential ='docker-push'
}
stages {
stage("Set Up") {
steps {
echo 'Set up GIT'
git branch: 'main', url: 'https://github.com/XYZ'
}
}
stage("Build docker image") {
steps {
echo 'BUILDING'
script {
dockerImage = docker.build registry + ":$BUILD_NUMBER"
}
}
}
stage('Push image') {
steps {
script {
docker.withRegistry('', registryCredential) {
dockerImage.push()
}
}
}
}
}}第一次使用jenkins将非常感谢解决方案和解释。
发布于 2022-10-04 18:16:35
如果您使用'-Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true‘配置运行日志,您会看到什么?
还请参阅:Stuck in 'sh' stage and then Process apparently never started in /home/jenkins/jenkins/workspace/删除所有空变量:管理Jenkins ->配置系统
https://stackoverflow.com/questions/73949931
复制相似问题