Class GroovyPostbuildRecorder.BadgeManager
java.lang.Object
org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder.BadgeManager
- Enclosing class:
- GroovyPostbuildRecorder
-
Constructor Summary
ConstructorDescriptionBadgeManager
(Run<?, ?> build, TaskListener listener, Result scriptFailureResult) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
addErrorBadge
(String text) void
addHtmlBadge
(String html) void
addInfoBadge
(String text) void
addShortText
(String text) void
void
addWarningBadge
(String text) void
void
boolean
buildIsA
(Class<? extends AbstractBuild<?, ?>> buildClass) Test whether the current build is specified type.void
void
void
void
boolean
Deprecated.boolean
Deprecated.com.jenkinsci.plugins.badge.action.BadgeSummaryAction
createSummary
(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) boolean
logContains
(String regexp) void
void
removeBadge
(int index) void
void
void
removeSummary
(int index) void
boolean
setBuildNumber
(int buildNumber)
-
Constructor Details
-
BadgeManager
-
-
Method Details
-
getEnvVars
-
println
-
getEnvVariable
- Throws:
IOException
InterruptedException
-
getHudson
Deprecated.use $getJenkins()
- Returns:
- the jenkins insance
-
getJenkins
-
getBuild
-
setBuild
-
setBuildNumber
public boolean setBuildNumber(int buildNumber) -
getListener
-
addShortText
-
addShortText
-
addBadge
-
addBadge
-
addInfoBadge
-
addWarningBadge
-
addErrorBadge
-
addHtmlBadge
-
getResult
-
removeBadges
public void removeBadges() -
removeBadge
public void removeBadge(int index) -
createSummary
-
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
-
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()