Class GroovyPostbuildRecorder.BadgeManager

java.lang.Object
org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder.BadgeManager
Enclosing class:
GroovyPostbuildRecorder

public static class GroovyPostbuildRecorder.BadgeManager extends Object
  • Constructor Details

    • BadgeManager

      public BadgeManager(Run<?,?> build, TaskListener listener, Result scriptFailureResult)
  • Method Details

    • getEnvVars

      public EnvVars getEnvVars()
    • println

      public void println(String string)
    • getEnvVariable

      public String getEnvVariable(String key) throws IOException, InterruptedException
      Throws:
      IOException
      InterruptedException
    • getHudson

      @Deprecated public Hudson getHudson()
      Deprecated.
      Returns:
      the jenkins insance
    • getJenkins

      public Jenkins getJenkins()
    • getBuild

      public Run<?,?> getBuild()
    • setBuild

      public void setBuild(Run<?,?> build)
    • setBuildNumber

      public boolean setBuildNumber(int buildNumber)
    • getListener

      public TaskListener getListener()
    • addShortText

      public void addShortText(String text)
    • addShortText

      public void addShortText(String text, String color, String background, String border, String borderColor)
    • addBadge

      public void addBadge(String icon, String text)
    • addBadge

      public void addBadge(String icon, String text, String link)
    • addInfoBadge

      public void addInfoBadge(String text)
    • addWarningBadge

      public void addWarningBadge(String text)
    • addErrorBadge

      public void addErrorBadge(String text)
    • addHtmlBadge

      public void addHtmlBadge(String html)
    • getResult

      public String getResult()
    • removeBadges

      public void removeBadges()
    • removeBadge

      public void removeBadge(int index)
    • createSummary

      public com.jenkinsci.plugins.badge.action.BadgeSummaryAction createSummary(String icon)
    • removeSummaries

      public void removeSummaries()
    • removeSummary

      public void removeSummary(int index)
    • buildUnstable

      public void buildUnstable()
    • buildFailure

      public void buildFailure()
    • buildSuccess

      public void buildSuccess()
    • buildAborted

      public void buildAborted()
    • buildNotBuilt

      public void buildNotBuilt()
    • buildScriptFailed

      public void buildScriptFailed(Exception e)
    • logContains

      public boolean logContains(String regexp)
    • contains

      @Deprecated public boolean contains(File f, String regexp)
      Deprecated.
    • contains

      @Deprecated public boolean contains(File f, Charset charset, String regexp)
      Deprecated.
    • getLogMatcher

      public Matcher getLogMatcher(String regexp)
    • getMatcher

      @Deprecated public Matcher getMatcher(File f, String regexp)
      Deprecated.
    • getMatcher

      public Matcher getMatcher(Reader r, String regexp)
    • getMatcher

      @Deprecated public Matcher getMatcher(File f, Charset charset, String regexp)
      Deprecated.
    • buildIsA

      public boolean buildIsA(Class<? extends AbstractBuild<?,?>> buildClass)
      Test whether the current build is specified type.
      Parameters:
      buildClass -
      Returns:
      true if the current build is an instance of buildClass