Class GroovyPostbuildRecorder.BadgeManager
java.lang.Object
org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder.BadgeManager
- Enclosing class:
GroovyPostbuildRecorder
-
Constructor Summary
ConstructorsConstructorDescriptionBadgeManager(Run<?, ?> build, TaskListener listener, Result scriptFailureResult) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidaddErrorBadge(String text) voidaddHtmlBadge(String html) voidaddInfoBadge(String text) voidaddShortText(String text) voidvoidaddWarningBadge(String text) voidvoidbooleanbuildIsA(Class<? extends AbstractBuild<?, ?>> buildClass) Test whether the current build is specified type.voidvoidvoidvoidbooleanDeprecated.booleanDeprecated.com.jenkinsci.plugins.badge.action.BadgeSummaryActioncreateSummary(String icon) Run<?, ?> getBuild()getEnvVariable(String key) Deprecated.getLogMatcher(String regexp) getMatcher(File f, String regexp) Deprecated.getMatcher(File f, Charset charset, String regexp) Deprecated.getMatcher(Reader r, String regexp) booleanlogContains(String regexp) voidvoidremoveBadge(int index) WARNING: This method removes actuallyAbstractBadgeActionobjects from thebuild, which include both actualbadgesseen in the build list column, and thesummariesseen on the build page.voidremoveBadgeOnly(int index) For details, seeremoveBadges().voidWARNING: This method removes actuallyAbstractBadgeActionobjects from thebuild, which include both actualbadgesseen in the build list column, and thesummariesseen on the build page.
It is a historic misnomer, so you may want actually the variants constrained to those Action types, e.g.voidFor details, seeremoveBadges().voidFor details, seeremoveBadges().voidremoveSummary(int index) For details, seeremoveBadges().voidbooleansetBuildNumber(int buildNumber)
-
Constructor Details
-
BadgeManager
-
-
Method Details
-
getEnvVars
-
println
-
getEnvVariable
- Throws:
IOExceptionInterruptedException
-
getHudson
-
getJenkins
-
getBuild
-
setBuild
-
setBuildNumber
public boolean setBuildNumber(int buildNumber) -
getListener
-
addShortText
-
addShortText
-
addBadge
-
addBadge
-
addInfoBadge
-
addWarningBadge
-
addErrorBadge
-
addHtmlBadge
-
getResult
-
removeBadges
public void removeBadges()WARNING: This method removes actuallyAbstractBadgeActionobjects from thebuild, which include both actualbadgesseen in the build list column, and thesummariesseen on the build page.
It is a historic misnomer, so you may want actually the variants constrained to those Action types, e.g.removeBadgesOnly()orremoveSummaries(). Removal in this context means that theActionwould no longer be linked to the specified build. An object in the pipeline (if someone gets the reference, e.g. via new Badge Plugin API) may still exist until it is no longer used and gets garbage-collected. Maybe someone can re-add such an Action object to same or different build before it evaporates, though.- See Also:
-
removeBadge
public void removeBadge(int index) WARNING: This method removes actuallyAbstractBadgeActionobjects from thebuild, which include both actualbadgesseen in the build list column, and thesummariesseen on the build page. For more details, seeremoveBadges().- See Also:
-
removeBadgesOnly
-
removeBadgeOnly
-
createSummary
-
removeSummaries
-
removeSummary
-
buildUnstable
public void buildUnstable() -
buildFailure
public void buildFailure() -
buildSuccess
public void buildSuccess() -
buildAborted
public void buildAborted() -
buildNotBuilt
public void buildNotBuilt() -
buildScriptFailed
-
logContains
-
contains
Deprecated. -
contains
Deprecated. -
getLogMatcher
-
getMatcher
Deprecated. -
getMatcher
-
getMatcher
Deprecated. -
buildIsA
Test whether the current build is specified type.- Parameters:
buildClass-- Returns:
- true if the current build is an instance of buildClass
-
getJenkins()