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

archiveArtifacts excludes does not work with spaces

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
    • Environment:
      Windows 2012R2 x64
      Java 1.8.0_161 x64
      Jenkins 2.105
    • Similar Issues:

      Description

      The Post-build action Archive the Artifacts has an 'excludes' property to exclude files.

      The help text points to http://ant.apache.org/manual/Types/fileset.html:

      Which states that excludes can be comma- or space-separated list.

      When using space nothing is excluded.

      When using comma the exclude works fine.

        Attachments

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          It seems we just need to improve the documentation to clarify that the field should be comma-separated.

          Show
          oleg_nenashev Oleg Nenashev added a comment - It seems we just need to improve the documentation to clarify that the field should be comma-separated.
          Hide
          smd Stefan Drissen added a comment -

          Interestingly the includes fill-in has already had some ui treatment applied previously and shows:

          Show
          smd Stefan Drissen added a comment - Interestingly the includes fill-in has already had some ui treatment applied previously and shows:
          Hide
          smd Stefan Drissen added a comment - - edited

          And while accidentally leaving files to archive behind with a space, discovered that a space on includes will also fail the build:

          ERROR: Whitespace can no longer be used as the separator. Please Use ‘,’ as the separator instead.
          Build step 'Archive the artifacts' changed build result to FAILURE

           

          Show
          smd Stefan Drissen added a comment - - edited And while accidentally leaving files to archive behind with a space, discovered that a space on includes will also fail the build: ERROR: Whitespace can no longer be used as the separator. Please Use ‘,’ as the separator instead. Build step 'Archive the artifacts' changed build result to FAILURE  

            People

            • Assignee:
              Unassigned
              Reporter:
              smd Stefan Drissen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: