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

Add the ability to publish HTML from String rather than file

    Details

    • Similar Issues:

      Description

      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

        Attachments

          Activity

          Hide
          r2b2_nz 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

          Show
          r2b2_nz 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
          Hide
          pyrocks 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

          Show
          pyrocks 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

            People

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

              Dates

              • Created:
                Updated: