当我使用gradle干净构建publishToMavenLocal时
publishing {
publications {
maven(MavenPublication) {
from components.java
}
}
}
使用7.1级。它适用于本地的gradle构建。然而,当我跑到詹金斯身上时,我得到:
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
当我注释掉build.gradle中的发布部分时,它在Jenkins中工作。
有什么想法吗?
谢谢
发布于 2021-12-09 20:26:53
https://stackoverflow.com/questions/70294673
复制相似问题