Class BuildLabellerCustomBuildProcessor

All Implemented Interfaces:
CustomBuildProcessor, InitablePluginModule, BambooPluginModule, BuildConfigurationAwarePlugin, ConfigurablePlugin, RenderableBuildConfiguration, AgentBuildTask, BuildTask, Callable<BuildContext>

public class BuildLabellerCustomBuildProcessor extends BaseConfigurableBuildPlugin implements CustomBuildProcessor
  • Field Details

  • Constructor Details

    • BuildLabellerCustomBuildProcessor

      public BuildLabellerCustomBuildProcessor()
  • Method Details

    • 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 interface BuildTask
      Specified by:
      call in interface Callable<BuildContext>
      Throws:
      InterruptedException - if the calling Thread has been interrupted.
      Exception - A general exception that will be handled.
    • validate

      @NotNull public @NotNull ErrorCollection validate(@NotNull @NotNull BuildConfiguration buildConfiguration)
      This method is used to validate a build configuration for a build plan

      This is used if the CustomBuildCompleteAction needs to have configuration stored against the build plan.

      Specified by:
      validate in interface BuildConfigurationAwarePlugin
      Overrides:
      validate in class BaseBuildConfigurationAwarePlugin
      Parameters:
      buildConfiguration - Build configuration object
      Returns:
      Collections of errors found during validation
    • isConfigurationMissing

      public boolean isConfigurationMissing(@NotNull @NotNull org.apache.commons.configuration.HierarchicalConfiguration configuration)
      Description copied from interface: BuildConfigurationAwarePlugin
      Checks if HierarchicalConfiguration objects contains plugin's configuration values. Should return true if call to addDefaultValues() is necessary to initialize HierarchicalConfiguration.
      Specified by:
      isConfigurationMissing in interface BuildConfigurationAwarePlugin
      Parameters:
      configuration - HierarchicalConfiguration object
      Returns:
      true if configuration is not present in HierarchicalConfiguration and should be set to defaults
    • getConfigurationKeys

      @NotNull public @NotNull Set<String> getConfigurationKeys()
    • getLabelsFromInterceptor

      @NotNull protected @NotNull Set<String> getLabelsFromInterceptor()
    • setCustomVariableContext

      public void setCustomVariableContext(CustomVariableContext customVariableContext)
    • setBuildLoggerManager

      public void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)