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

Publish artifacts to S3 bucket drops characters before wildcard

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: s3-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      If the filter wildcard is not the first character, the “Publish artifacts to S3 Bucket” step will drop all characters before the wildcard. e.g. if the filter is ‘package.*.nupkg’ the file ‘package.2.7.0.4.nupkg’ will be uploaded as ‘2.7.0.4.nupkg’
      The culprit seems to be explicit code in FileHelper.getSearchPathLength(), but the behavior is not obvious when configuring the step and there is no way to configure around this if you need to match like this.

      In my case to workaround this, my script moved the package.*.nupkg to an isolated directory and publish from there.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Alex
          Path:
          src/main/java/hudson/plugins/s3/FileHelper.java
          src/test/java/hudson/plugins/s3/FileHelperTest.java
          http://jenkins-ci.org/commit/s3-plugin/c6718929a13770116bc3361390908cebeb1d35fb
          Log:
          [FIXED JENKINS-37447]: Publish artifacts to S3 bucket drops characters before
          wildcard

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alex Path: src/main/java/hudson/plugins/s3/FileHelper.java src/test/java/hudson/plugins/s3/FileHelperTest.java http://jenkins-ci.org/commit/s3-plugin/c6718929a13770116bc3361390908cebeb1d35fb Log: [FIXED JENKINS-37447] : Publish artifacts to S3 bucket drops characters before wildcard
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Alex
          Path:
          src/main/java/hudson/plugins/s3/FileHelper.java
          src/test/java/hudson/plugins/s3/FileHelperTest.java
          http://jenkins-ci.org/commit/s3-plugin/973d27da803d8dec06fdec06b9591babacf6ffbd
          Log:
          [FIXED JENKINS-37447]: Publish artifacts to S3 bucket drops characters before
          wildcard

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alex Path: src/main/java/hudson/plugins/s3/FileHelper.java src/test/java/hudson/plugins/s3/FileHelperTest.java http://jenkins-ci.org/commit/s3-plugin/973d27da803d8dec06fdec06b9591babacf6ffbd Log: [FIXED JENKINS-37447] : Publish artifacts to S3 bucket drops characters before wildcard

            People

            Assignee:
            jimilian Alexander A
            Reporter:
            pnahas Pete Nahas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: