Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-61299

breaking forward slash inserted in download with proget jenkins plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • inedo-proget-plugin
    • 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'

            andrewsumner Andrew Sumner
            mcascone Max Cascone
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: