[JIRA] (JENKINS-61299) breaking forward slash inserted in downloadprogetpackage jenkins plugin

2 views
Skip to first unread message

mcascone@consilio.com (JIRA)

unread,
Mar 2, 2020, 5:18:02 PM3/2/20
to jenkinsc...@googlegroups.com
Max Cascone created an issue
 
Jenkins / Bug JENKINS-61299
breaking forward slash inserted in downloadprogetpackage jenkins plugin
Issue Type: Bug Bug
Assignee: Andrew Sumner
Components: inedo-proget-plugin
Created: 2020-03-02 22:17
Environment: Jenkins v2.204.2 on windows and linux
Priority: Minor Minor
Reporter: Max Cascone

When using the download directive in the jenkins plugin, it inserts a forward slash at the start of the destination string, which breaks the download to a windows agent:
 downloadProgetPackage downloadFolder: "${WORKSPACE}/${deployLocation}",
downloadFormat: 'zip',
feedName: 'PlatDev',
groupName: "Relativity/${env.appName}/${BRANCH_NAME}",
packageName: "${env.appName}",
version: 'Latest'
 ${WORKSPACE} == pwd() == D:\workspace_5649-PS-jenkins-deploy-pipeline
${deployLocation} == 'deploy'
 

Result:
 [ProGet] Download package to /D:\workspace_5649-PS-jenkins-deploy-pipeline/deploy
 

has anyone seen this, resolved it?

I am currently working around it by using the raw url download:
httpRequest outputFile: "${deployLocation}/${appName}.zip",
responseHandle: 'NONE',
url: 'http://proget.consilio.com/upack/PlatDev/download/Relativity/ProcessingSync/PLATDEV-5649-PS-jenkins-deploy-pipeline/ProcessingSync?latest&contentOnly=zip'

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

mcascone@consilio.com (JIRA)

unread,
Mar 2, 2020, 5:21:02 PM3/2/20
to jenkinsc...@googlegroups.com
Max Cascone updated an issue
Change By: Max Cascone
When using the download directive in the jenkins plugin, it inserts a forward slash at the start of the destination string, which breaks the download to a windows agent:
{code:java}
 downloadProgetPackage downloadFolder: "${WORKSPACE}/${deployLocation}",
                     downloadFormat: 'zip',
                     feedName: 'PlatDev',
                     groupName: "Relativity/${env.appName}/${BRANCH_NAME}",
                     packageName: "${env.appName}",
                     version: 'Latest'


 ${WORKSPACE} == pwd() == D:\ workspace\_5649 workspace_5649 -PS-jenkins-deploy-pipeline
${deployLocation} == 'deploy'
{code}

 

*Result*:
  {code:java} [ProGet] Download package to /D:\ workspace\_5649 workspace_5649 -PS-jenkins-deploy-pipeline/deploy {code}
 

has anyone seen this, resolved it?

I am currently working around it by using the raw url download:
{code:java} httpRequest outputFile: "${deployLocation}/${appName}.zip",
                    responseHandle: 'NONE',
                    url: 'http://proget.consilio.com/upack/PlatDev/download/Relativity/ProcessingSync/PLATDEV-5649-PS-jenkins-deploy-pipeline/ProcessingSync?latest&contentOnly=zip'
{code}
Reply all
Reply to author
Forward
0 new messages