Reputation: 309
I have this so far but nothing is getting uploaded although it says run successfully
node ('node with path to remote server') {
stage('upload') {
rtUpload (
serverId: "artifactoryID",
spec:"""{
"files": [
{
"pattern": "*.zip",
"target": "reponame/path/"
}
]
}"""
)
}
}
thank you!
Upvotes: -1
Views: 2648
Reputation: 6083
This warning message introduced in the Groovy Plugin v2.7.1 at this commit. More information can be found in JENKINS-58643. This Pull Request should remove this warning. Does the file uploaded eventually? If it does, you can ignore this message.
By the way, I noticed that you are using scripted pipeline inside declarative pipeline. There is a native declarative syntax in Jenkins Artifactory plugin. You can also see a full example here.
Upvotes: 2