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

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Duplicate
    • google-storage-plugin
    • None
    • Master on Linux instance
      Slave on Windows 8 machine

    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

          craigbarber Craig Barber added a comment - Migrated to: https://github.com/jenkinsci/google-storage-plugin/issues/57

          I changed the assignee to one of the maintainers to see if we can get any feedback.
          Maintainers are listed as mattmoor and tcnghia

          boinged Steven Shipton added a comment - I changed the assignee to one of the maintainers to see if we can get any feedback. Maintainers are listed as mattmoor and tcnghia
          pedro_ribeiro Pedro Ribeiro added a comment -

          boinged, do you know what is the status of this issue? I am bumping into the same issue and would be very interested in seeing this fixed.

          pedro_ribeiro Pedro Ribeiro added a comment - boinged , do you know what is the status of this issue? I am bumping into the same issue and would be very interested in seeing this fixed.

          Changed from request to bug report as this is breaking 3rd party services which use the path. I.e. they interpret the \ as folders and not part of the filename

          boinged Steven Shipton added a comment - Changed from request to bug report as this is breaking 3rd party services which use the path. I.e. they interpret the \ as folders and not part of the filename

          People

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

            Dates

              Created:
              Updated:
              Resolved: