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

Add the ability to publish HTML from String rather than file

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • htmlpublisher-plugin
    • None

      Hi,

      I have a job which triggers other jobs, waits for them to finish and builds an HTML out of their statuses along with some other data.

      I wish to keep this job a flyweight/lightweight one in the sense of not occupying an executor - but since the plugin only accepts a file to publish - I must first write the HTML I create dynamically to a file and then call the plugin with the file. But in order to write the file - I must be in a heavyweight executor - just for the sake of being able to publish the report.

      What I wish is to have the ability to pass the HTML as a String parameter instead of a file - the plugin can assume the HTML is self-contained (as in no other files and resources are needed) and eventually write it "as is" to the master.

       

      Seems easy enough. Can this be done?
      Thanks

      Mor

            r2b2_nz Richard Bywater
            pyrocks Mor L
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: