title: Jenkins htmlPublish function : All files are published including not html ones
body: <p>I would like to publish html files, it's possible that in my folder I end up with more then one file therefore I have defined the function as below :</p>
  <pre><code>dir(&quot;${WORKSPACE}/reports/${testScope}-${team}&quot;) {
        unstash &quot;${testScope}-${team}-test-report&quot;
        htmlFiles = findFiles glob: '*.html'
      }
      publishHTML(target: [
          allowMissing         : false,
          alwaysLinkToLastBuild: true,
          keepAll              : true,
          reportDir            : &quot;${WORKSPACE}/reports/${testScope}-${team}/test/results/report/&quot;,
          reportFiles          :  htmlFiles.join(','),
          reportName           : &quot;${testScope}-${team}&quot;,
          reportTitles         : &quot;${testScope} ${team} Test report&quot;
      ])
      
  </code></pre>
  <p>This is publishing all files in my folder even xml ones, is something wrong with my code?</p>