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

breaking forward slash inserted in download with proget jenkins plugin

    • 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'

          [JENKINS-61299] breaking forward slash inserted in download with proget jenkins plugin

          Max Cascone created issue -
          Max Cascone made changes -
          Description Original: 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'
          New: 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-PS-jenkins-deploy-pipeline
           ${deployLocation} == 'deploy'{code}

            

          *Result*:
           {code:java}[ProGet] Download package to /D:\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}
          Max Cascone made changes -
          Summary Original: breaking forward slash inserted in downloadprogetpackage jenkins plugin New: breaking forward slash inserted in download with proget jenkins plugin
          Max Cascone made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

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

              Created:
              Updated:
              Resolved: