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?