我在尝试让Jenkinsfile工作时遇到了很多麻烦.我一直在尝试运行这个测试脚本:
#!/usr/bin/env groovy
node {
stage('Build') {
echo 'Building....'
// Create virtualenv
sh 'echo "hi"'
}
stage('Test') {
echo 'Building....'
}
stage('Deploy') {
echo 'Deploying....'
}
}
Run Code Online (Sandbox Code Playgroud)
但是在尝试构建时我不断收到此错误:
Warning: JENKINS-41339 probably bogus PATH=/usr/lib64/ccache:/usr/lib64/ccache:$PATH; perhaps you meant to use ‘PATH+EXTRA=/something/bin’?
[test-job-jenkinsfile-pipeline] Running shell script
nohup: failed to run command `sh': No such file or directory
Run Code Online (Sandbox Code Playgroud)
我将所有管道插件更新到最新版本,但仍然遇到此错误.有帮助吗?