Class BuildLogLabellerPreBuildAction
java.lang.Object
com.atlassian.bamboo.plugins.labeller.BuildLogLabellerPreBuildAction
- All Implemented Interfaces:
CustomPreBuildAction
,BambooPluginModule
,AgentBuildTask
,BuildTask
,Callable<BuildContext>
Agent side pre build action which adds build log interceptor.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@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 Details
-
buildLoggerManager
-
-
Constructor Details
-
BuildLogLabellerPreBuildAction
public BuildLogLabellerPreBuildAction()
-
-
Method Details
-
validate
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
-
call
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
-
setBuildLoggerManager
-