-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Jenkins v2.204.2 on windows and linux
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'