Class BuildLabeller
- java.lang.Object
-
- com.atlassian.bamboo.plugins.labeller.BuildLabeller
-
- All Implemented Interfaces:
CustomBuildProcessorServer
,BambooPluginModule
,BuildTask
,HibernateBuildTask
,Callable<BuildContext>
public class BuildLabeller extends Object implements CustomBuildProcessorServer
Server side processor which reads build result metadata and adds labels to build result entity.
-
-
Constructor Summary
Constructors Constructor Description BuildLabeller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull BuildContext
call()
This action will run after a build has completed.void
init(@NotNull BuildContext buildContext)
void
setBuildLogFileAccessorFactory(BuildLogFileAccessorFactory buildLogFileAccessorFactory)
void
setCachedPlanManager(CachedPlanManager cachedPlanManager)
void
setLabelManager(LabelManager labelManager)
void
setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)
-
-
-
Method Detail
-
init
public void init(@NotNull @NotNull BuildContext buildContext)
-
call
@NotNull public @NotNull BuildContext call() throws Exception
This action will run after a build has completed.The build will be tagged with a specified set of labels if the logs matches the specified regex pattern.
- Specified by:
call
in interfaceBuildTask
- Specified by:
call
in interfaceCallable<BuildContext>
- Throws:
InterruptedException
- if the callingThread
has been interrupted.Exception
- A general exception that will be handled.
-
setLabelManager
public void setLabelManager(LabelManager labelManager)
-
setBuildLogFileAccessorFactory
public void setBuildLogFileAccessorFactory(BuildLogFileAccessorFactory buildLogFileAccessorFactory)
-
setCachedPlanManager
public void setCachedPlanManager(CachedPlanManager cachedPlanManager)
-
setResultsSummaryManager
public void setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)
-
-