Class Templates

java.lang.Object
se.diabol.jenkins.pipeline.freestyle.Templates

public final class Templates extends Object
Expands the token macros of task names and description templates, and formats descriptions for display.
  • Method Details

    • expand

      public static String expand(Run<?,?> build, String template)
      Expands the macros of the template against the build; without a build the variables are blanked out.
    • toHtml

      public static String toHtml(String text)
      Turns text into the HTML the page may show, through the markup formatter configured for Jenkins, exactly like a job description.