org.jvnet.hudson.plugins.groovypostbuild
Class GroovyPostbuildRecorder.BadgeManager

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

public static class GroovyPostbuildRecorder.BadgeManager
extends Object


Constructor Summary
GroovyPostbuildRecorder.BadgeManager(hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener, hudson.model.Result scriptFailureResult, boolean enableSecurity)
           
 
Method Summary
 void addBadge(String icon, String text)
           
 void addErrorBadge(String text)
           
 void addInfoBadge(String text)
           
 void addShortText(String text)
           
 void addShortText(String text, String color, String background, String border, String borderColor)
           
 void addWarningBadge(String text)
           
 void buildFailure()
           
 void buildScriptFailed(Exception e)
           
 void buildSuccess()
           
 void buildUnstable()
           
 boolean contains(File f, String regexp)
           
 GroovyPostbuildSummaryAction createSummary(String icon)
           
 hudson.model.AbstractBuild<?,?> getBuild()
           
 hudson.model.Hudson getHudson()
           
 hudson.model.BuildListener getListener()
           
 Matcher getLogMatcher(String regexp)
           
 Matcher getMatcher(File f, String regexp)
           
 boolean logContains(String regexp)
           
 void removeBadge(int index)
           
 void removeBadges()
           
 void removeSummaries()
           
 void removeSummary(int index)
           
 void setBuild(hudson.model.AbstractBuild<?,?> build)
           
 boolean setBuildNumber(int buildNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyPostbuildRecorder.BadgeManager

public GroovyPostbuildRecorder.BadgeManager(hudson.model.AbstractBuild<?,?> build,
                                            hudson.model.BuildListener listener,
                                            hudson.model.Result scriptFailureResult,
                                            boolean enableSecurity)
Method Detail

getHudson

public hudson.model.Hudson getHudson()

getBuild

public hudson.model.AbstractBuild<?,?> getBuild()

setBuild

public void setBuild(hudson.model.AbstractBuild<?,?> build)

setBuildNumber

public boolean setBuildNumber(int buildNumber)

getListener

public hudson.model.BuildListener 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)

addInfoBadge

public void addInfoBadge(String text)

addWarningBadge

public void addWarningBadge(String text)

addErrorBadge

public void addErrorBadge(String text)

removeBadges

public void removeBadges()

removeBadge

public void removeBadge(int index)

createSummary

public GroovyPostbuildSummaryAction 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()

buildScriptFailed

public void buildScriptFailed(Exception e)

logContains

public boolean logContains(String regexp)

contains

public boolean contains(File f,
                        String regexp)

getLogMatcher

public Matcher getLogMatcher(String regexp)

getMatcher

public Matcher getMatcher(File f,
                          String regexp)


Copyright © 2004-2012. All Rights Reserved.