gerd_zanker,
I've just tried this with version 2.12.2 and it seems to be working for me as expected.
Could it be that there's something in your specific File Specs that causes this? Can you try and copy my File Spec and try running it? Here's what I tried:
node {
def server = Artifactory.server "SERVER_ID"
def uploadSpec = """{
"files": [{
"pattern": "gradle-examples/*/(*.gradle)",
"target": "tests/doc/aaa----{1}",
"flat": "false"
}]
}"""
server.upload spec: uploadSpec
}
and here's the build log. As you can see, the {1} placeholder is replaced in the uploaded file name.
Started by user admin
[Pipeline] node
Running on master in /Users/eyalb/.jenkins/workspace/pipe-2
[Pipeline] {
[Pipeline] getArtifactoryServer
[Pipeline] artifactoryUpload
For pattern: gradle-examples/*/(*.gradle) 55 artifacts were found.
Deploying artifact: http:Deploying artifact: http:Deploying artifact: http:[Pipeline] }
[Pipeline] [Pipeline] End of Pipeline
Finished: SUCCESS
If you can share a sample JenkinsFile through github that reproduces this, we can run it and see the output.
Can you please share with us a full File Spec that worked for you in version 2.11, and stopped working in 2.12?