[HAP-1160] Missing first slash from repository path in build log Created: 11/Mar/19  Updated: 31/Mar/19  Resolved: 11/Mar/19

Status: Resolved
Project: Jenkins Artifactory Plug-in
Component/s: None
Affects Version/s: 3.2.1
Fix Version/s: 3.2.2

Type: Bug Priority: Normal
Reporter: Adi Malca Assignee: Eyal Ben Moshe
Resolution: Not a Bug Votes: 0
Labels: None
Environment:

Artifactory - 6.8.3

Artifactory Jenkins plugin - 3.2.1



 Description   

There is an issue, where there is a Missing first slash from repository path in build log, when running the following pipeline:

node{
String module = "rlb-stack-Source"
def artServer = Artifactory.server 'artifactory'
def buildInfo = Artifactory.newBuildInfo()

stage('deploy') {

artServer.upload([
spec: """
{
"files": [
{
"pattern": "${module}-*.tgz",
"target": "rlb-generic-dev-local/wago/rlb-stack/${module}/"
}
]
}
""",
buildInfo: buildInfo
])
artServer.publishBuildInfo(buildInfo)
println(artServer.url)
println(buildInfo.artifacts)


}
}

On the generated log file, the path from the last 'println' in the pipeline will be corrupted, Although the package will be deployed to Artifactory as it should. 

for example:
rlb-generic-dev-localwago/rlb-stack/rlb-stack-Source/rlb-stack-Source-43.tgz'
instead of
rlb-generic-dev-local/wago/rlb-stack/rlb-stack-Source/rlb-stack-Source-43.tgz



 Comments   
Comment by Adi Malca [ 11/Mar/19 ]

Here is a SNAPSHOT of an Artifactory plugin which contains a fix for this issue, you are welcome to try it and give us feedback.

https://oss.jfrog.org/oss-snapshot-local/org/jenkins-ci/plugins/artifactory/3.2.x-SNAPSHOT/artifactory-3.2.x-20190311.163116-13.hpi 

This fix will be in the next official release.

Generated at Tue Oct 22 06:14:20 UTC 2019 using JIRA 7.6.16#76018-sha1:9ed376192612a49536ac834c64177a0fed6290f5.