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 BuildContextcall()This action will run after a build has completed.voidinit(@NotNull BuildContext buildContext)voidsetBuildLogFileAccessorFactory(BuildLogFileAccessorFactory buildLogFileAccessorFactory)voidsetCachedPlanManager(CachedPlanManager cachedPlanManager)voidsetLabelManager(LabelManager labelManager)voidsetResultsSummaryManager(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:
callin interfaceBuildTask- Specified by:
callin interfaceCallable<BuildContext>- Throws:
InterruptedException- if the callingThreadhas 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)
-
-