-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
Ubuntu 16.04.1 LTS
Jenkins version 2.32.1
artifactory-plugin version 2.9.2
This works with artifactory-plugin version 2.9.1.
def uploadSpec = """{ "files": [ { "pattern": "local/${organization}/${moduleName}/(.*?)/(.*?)/(.*?)-SNAPSHOT/(.*?)/(.*?).jar", "regexp" : true, "target": "${repositoryName}/${organization}/${moduleName}/{1}/{2}/{3}/{4}/{5}.jar" } ] }"""
with log output:
For pattern: local/<orga>/<module>/(*)/(*)/(*)-SNAPSHOT/(*)/(*).jar 3 artifacts were found. Deploying artifact: http://<artifactory-server>/<repository>/<orga>/<module>/scala_2.10/sbt_0.13/1.0.2/jars/<module>.jar Deploying artifact: http://<artifactory-server>/<repository>/<orga>/<module>/scala_2.10/sbt_0.13/1.0.2/jars/<module>-sources.jar Deploying artifact: http://<artifactory-server>/<repository>/<orga>/<module>/scala_2.10/sbt_0.13/1.0.2/jars/<module>-javadoc.jar
After an upgrade to 2.9.2, the placeholders are no longer resolved. Log shows:
For pattern: local/<orga>/<module>/(*)/(*)/(*)-SNAPSHOT/(*)/(*).jar 3 artifacts were found.
Deploying artifact: http://<artifactory-server>/<repository>/<orga>/<module>/{1}/{2}/{3}/{4}/{5}.jar
This issue seems to have returned in plugin version 2.11.
The issue I originally reported was fixed as a part of https://www.jfrog.com/jira/browse/HAP-897
I am not able to try and upgrade to 2.12 to see if the issue persists, and there is no option to downgrade in the Jenkins UI either.
Can it be confirmed that this is also happening in 2.12?