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

Multiline Fileset declarations are not working in declarative pipeline

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Minor Minor
    • email-ext-plugin
    • None

      HI, I can't make it work, to attach files using two include patterns, like i.e.:

      EmailAttachmentsPattern = """**\\Logs\\*.*"""

      works fine, but if I want to cherry pick just html and txt files:
       

      EmailAttachmentsPattern = """
        <fileset dir="Logs" casesensitive="no"> 
          <include name="**\\*.txt"/> 
          <include name="**\\*.html"/> 
        </fileset>"""

       
      that does not work at all

          [JENKINS-46784] Multiline Fileset declarations are not working in declarative pipeline

          Hi, any news about this issue?

          Jakub Pawlinski added a comment - Hi, any news about this issue?

          Have you tried just comma or newline separated patterns
          EmailAttachmentsPattern = """*\\Logs\\*.txt,*\\Logs
          *.html"""

          David van Laatum added a comment - Have you tried just comma or newline separated patterns EmailAttachmentsPattern = """* \\Logs\\*.txt, *\\Logs *.html"""

          Alex Earl added a comment -

          User did not provide answer to question

          Alex Earl added a comment - User did not provide answer to question

            davidvanlaatum David van Laatum
            quas Jakub Pawlinski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: