我在这里得到了与修复的问题相同的问题:https://issues.jenkins.io/browse/JENKINS-58643
我们正在使用Jenkins 2.190.3.2
stage('upload artefactory') {
steps {
sh "touch /tmp/blabla"
sh "gzip /tmp/blabla"
script {
server = Artifactory.server('myid')
server.credentialsId = 'my-cred'
def uploadSpec = """{
"files": [
{
"pattern": "/tmp/blabla.gz",
"target": "pkg/com/myentreprise/mystuff/scm/dumps/solr/"
}
]
}"""
server.upload spec: uploadSpec, failNoOp: true
}
}
}
[Pipeline]artifactoryUpload本应调用org.frog.hudson.pipeline.mon.types.ArtifactoryServer.upload,但最终捕获了artifactoryUpload;请参阅:https://jenkins.io/redirect/pipeline-cps-method-mismatches/
这是在Pipeline Groovy 2.75 中修复的
我们有2.74,所以我们仍然有这个错误。
唯一的解决方案似乎是升级。