groovy.lang.MissingPropertyException:无此类属性:类的人工工厂:groovy.lang.Binding

时间:2019-02-28 02:07:42

标签: jenkins groovy jenkins-pipeline artifactory

更新git插件后,Jenkins管道出现错误。

groovy.lang.MissingPropertyException: No such property: Artifactory for class: groovy.lang.Binding

我的Jenkins管道代码:

stage ('Deploy Artifact') {

             def server = Artifactory.server "Default Artifactory Server"
             def buildInfo = Artifactory.newBuildInfo()
             buildInfo.env.capture = true
             buildInfo.env.collect()

             def uploadSpec = """{

Artifactory版本2.14.0

Jenkins版本:2.73.2

请给我一个建议!谢谢。

0 个答案:

没有答案