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

Please add option to remove prefix from local path when performing Classic Upload

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Component/s: google-storage-plugin
    • Labels:
      None
    • Environment:
      Master on Linux instance
      Slave on Windows 8 machine
    • Similar Issues:

      Description

      E.g. local file is Build/target/web/result.txt
      Upload to gs://my-cloud

      The filename in the cloud is "Build\target\web\result.txt"

      The desired filename in the cloud is "result.txt"

      Another plugin which handles this is the Flexible Publish plugin which has an additional field 'remove prefix' which will be removed prior to upload, so we could specify "Build/target/web" in this field to get the desired behaviour.

      https://wiki.jenkins-ci.org/display/JENKINS/Flexible+Publish+Plugin

      Please also note that ideally the path folder separator would be platform independent. I.e. we specify "Build/target/web" and this will work on Windows and Linux based slaves.

        Attachments

          Activity

          boinged Steven Shipton created issue -
          boinged Steven Shipton made changes -
          Field Original Value New Value
          Issue Type Improvement [ 4 ] Bug [ 1 ]
          boinged Steven Shipton made changes -
          Assignee Matthew Moore [ mattmoor ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 156454 ] JNJira + In-Review [ 179287 ]
          craigbarber Craig Barber made changes -
          Resolution Duplicate [ 3 ]
          Status Open [ 1 ] Resolved [ 5 ]

            People

            Assignee:
            mattmoor Matthew Moore
            Reporter:
            boinged Steven Shipton
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: