jenkinscontinuous-integrationjenkins-pluginsjellyemail-ext

Jenkins email ext jelly script include file contents


Can I display the contents of another file in my jelly script output?


Solution

  • If the file is included in the workspace of the job, declare your variable such as:

    <j:set var="fileContent" value="${build.getWorkspace().child("results.html")}"/>
    

    And call it this way:

    ${fileContent}