今天开发反馈一直使用好好的 jenkins 编译服务,居然报错了
看日志,说是 deleteDir 出了问题
org.jenkinsci.plugins.workflow.steps.MissingContextVariableException: Required context class hudson.FilePath is missing
Perhaps you forgot to surround the code with a step that provides this, such as: node
然后开发调整后
开始报另一种错误
开发无解后,找到了我
我看了一下 pipeline
pipeline {
agent{ label 'qa-gpu016.test.cn' }
parameters {
string(defaultValue: '0.0.0', description: '版本号', name: 'version', trim: false)
}
......
发现任务是调度到·qa-gpu016.test.cn
,然后登录