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

Add the ability to publish HTML from String rather than file

    • 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

          [JENKINS-47910] Add the ability to publish HTML from String rather than file

          I'll have to have a think about how that might work given the current structure of the plugin. 

          In the meantime, if you are so inclined, PRs are gladly accepted for review & inclusion and will help get the feature in faster

          Richard Bywater added a comment - I'll have to have a think about how that might work given the current structure of the plugin.  In the meantime, if you are so inclined, PRs are gladly accepted for review & inclusion and will help get the feature in faster

          Mor L added a comment -

          Thanks for taking this into consideration

          I'm afraid my ability to do PRs is non-existent at the moment, so i'll make use of the way it works now, but if you do find yourself adding it eventually I'd really appreciate it

          cheers,

          Mor

          Mor L added a comment - Thanks for taking this into consideration I'm afraid my ability to do PRs is non-existent at the moment, so i'll make use of the way it works now, but if you do find yourself adding it eventually I'd really appreciate it cheers, Mor

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

              Created:
              Updated: