Class BuildLogLabellerPreBuildAction
- java.lang.Object
-
- com.atlassian.bamboo.plugins.labeller.BuildLogLabellerPreBuildAction
-
- All Implemented Interfaces:
CustomPreBuildAction
,BambooPluginModule
,AgentBuildTask
,BuildTask
,Callable<BuildContext>
public class BuildLogLabellerPreBuildAction extends Object implements CustomPreBuildAction
Agent side pre build action which adds build log interceptor.
-
-
Field Summary
Fields Modifier and Type Field Description protected BuildLoggerManager
buildLoggerManager
-
Constructor Summary
Constructors Constructor Description BuildLogLabellerPreBuildAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull BuildContext
call()
Execute the build task.void
init(@NotNull BuildContext buildContext)
void
setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
void
setCustomVariableContext(CustomVariableContext customVariableContext)
@Nullable ErrorCollection
validate(BuildConfiguration config)
Validate the build configuration when trying to save configuration for thePlan
This is used if the CustomPreBuildAction needs to have configuration stored against the build plan.
-
-
-
Field Detail
-
buildLoggerManager
protected BuildLoggerManager buildLoggerManager
-
-
Method Detail
-
validate
@Nullable public @Nullable ErrorCollection validate(BuildConfiguration config)
Description copied from interface:CustomPreBuildAction
Validate the build configuration when trying to save configuration for thePlan
This is used if the CustomPreBuildAction needs to have configuration stored against the build plan.- Specified by:
validate
in interfaceCustomPreBuildAction
- Returns:
-
init
public void init(@NotNull @NotNull BuildContext buildContext)
-
call
@NotNull public @NotNull BuildContext call() throws Exception
Description copied from interface:BuildTask
Execute the build task.
Implementations should regularly check if the calling
Thread
has been interrupted.- 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.
-
setCustomVariableContext
public void setCustomVariableContext(CustomVariableContext customVariableContext)
-
setBuildLoggerManager
public void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
-
-