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

Allow Nexus artifact uploader to trim possible whitespace from filename

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When using the nexusArtifactUploader step, if the specified artifact file attribute contains a trailing whitespace the nexus artifact uploader fails with a "file doesn't exists" message. While being true (the file with the specified name does not acutally exist), it is difficult to troubleshoot when scripting pipelines and the specified artifact name happens to have a trailing whitespace which other steps / calls accept. It would be a nice to have if the nexus-artifact-plugin could perform a trim on the string.

      The plugin project does not seem to contain any tests, but this can be reproduced by specifying an existing file in the workspace followed by a trailing line break.

        Attachments

          Activity

          Show
          tommysdk Tommy Tynjä added a comment - Proposed solution: https://github.com/jenkinsci/nexus-artifact-uploader-plugin/pull/11

            People

            Assignee:
            tommysdk Tommy Tynjä
            Reporter:
            tommysdk Tommy Tynjä
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: