0
我想通過使用Jenkins管道腳本上傳一些二進制文件到Artifactory。 我使用了Artifactory documentation的相同示例,但它不起作用。 我有以下錯誤:Artifactory - 使用Jenkins管道腳本上傳
hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No signature of method: java.lang.String.upload() is applicable for argument types: (java.lang.String) values: [{
"files": [
....
還有另外一個類似question,但沒有任何反應......
pipeline {
agent any
environment {
def server = Artifactory.server 'art-1'
def uploadSpec = """{
"files": [
{
"pattern": "path/",
"target": "path/"
}
]
}"""
}
stages {
stage('upload') {
steps {
script { server.upload(uploadSpec) }
}
}
}
}
Artifactory的5.4.6