I am attempting to upload a file with a custom name to Artifactory. I have the following working in release builds, but not snapshots:
Project Name: test-project Version: 1.0.0
def configFile = file(’…/foo.properties.erb’)
archives configFile }
In the snapshot build, this uploads a file called test-project-1.0.0-SNAPSHOT.erb but in the release build, it uploads correctly to a file named foo.properties-1.0.0.erb. Has anyone had any similar experiences with file names not getting set properly?