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 Details

    • BuildLabeller

      public BuildLabeller()
  • Method Details

    • init

      public void init(@NotNull @NotNull BuildContext buildContext)
      Specified by:
      init in interface BuildTask
    • 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 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.
    • setLabelManager

      public void setLabelManager(LabelManager labelManager)
    • setBuildLogFileAccessorFactory

      public void setBuildLogFileAccessorFactory(BuildLogFileAccessorFactory buildLogFileAccessorFactory)
    • setCachedPlanManager

      public void setCachedPlanManager(CachedPlanManager cachedPlanManager)
    • setResultsSummaryManager

      public void setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)