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

HTML Plugins, how to mention dynamic reportfiles names with datetime stamp in publish html repoorts

      In Pipeline syntax for Publish html reports, My Execution reports are generated with different timestamps, however not sure how to mention the dynamic file names in publish html reports syntax below :

      file Format - testreport_dd-mm-yyy-hh-mm-ss.html

      // code placeholder
      publishHTML (target : [allowMissing: false,
       alwaysLinkToLastBuild: true,
       keepAll: true, 
       reportDir: 'coverage', 
       reportFiles: 'testreport_dd-mm-yyy-hh-mm-ss.html', 
       reportName: 'HTML Report', 
       reportTitles: 'Gucci-API Tests'])
      

       

          [JENKINS-57339] HTML Plugins, how to mention dynamic reportfiles names with datetime stamp in publish html repoorts

          With Pipeline, the reportFiles parameter is expected to be a resolved string that has been set - therefore you will need to come up with a way of determining the timestamp fo the testreport and populating reportsFiles with a string that contains the result.

          Please note that I'm closing this issue as it isn't really a defect and instead should be a question asked on the Jenkins User mailing list or similar.

          Richard Bywater added a comment - With Pipeline, the reportFiles parameter is expected to be a resolved string that has been set - therefore you will need to come up with a way of determining the timestamp fo the testreport and populating reportsFiles with a string that contains the result. Please note that I'm closing this issue as it isn't really a defect and instead should be a question asked on the Jenkins User mailing list or similar.

            r2b2_nz Richard Bywater
            karthiksm7 Karthik Murali
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: