Class BuildProblemInvestigationsAndMutesManagerImpl
- java.lang.Object
-
- jetbrains.buildServer.responsibility.remover.BuildProblemInvestigationsAndMutesManagerImpl
-
- All Implemented Interfaces:
BuildProblemInvestigationsAndMutesManager
public class BuildProblemInvestigationsAndMutesManagerImpl extends Object implements BuildProblemInvestigationsAndMutesManager
For investigated and/or muted build problems delayed checks if the submitted build problems were fixed in the specified projects and removes the corresponding responsibilities and mutes. Default delay isDEFAULT_DELAY_SECONDS
, for custom delay provide @{linkDELAY_SECONDS_PROPERTY
} internal property.- Since:
- 10.0.4
- Author:
- vbedrosova
-
-
Constructor Summary
Constructors Constructor Description BuildProblemInvestigationsAndMutesManagerImpl(ProjectManager projectManager, BuildsManager buildsManager, ResponsibilityFacadeEx responsibilityFacade, ProblemMutingService problemMutingService, ExecutorServices executorServices, BuildProblemInvestigationAuditLog investigationAuditLog, SQLRunnerEx db)
BuildProblemInvestigationsAndMutesManagerImpl(ProjectManager projectManager, BuildsManager buildsManager, ResponsibilityFacadeEx responsibilityFacade, ProblemMutingService problemMutingService, ExecutorServices executor, BuildProblemInvestigationAuditLog investigationAuditLog, SQLRunnerEx db, Integer delaySeconds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
removeBuildProblemInvesigations(List<BuildProblemResponsibilityEntry> toRemove, String reason)
void
start()
void
submitFixedProblems(Collection<BuildProblemInfo> fixedProblems, SBuild build)
Use this method on a build finish, to submit a collection of problems fixed in the build.
-
-
-
Constructor Detail
-
BuildProblemInvestigationsAndMutesManagerImpl
@Autowired public BuildProblemInvestigationsAndMutesManagerImpl(@NotNull ProjectManager projectManager, @NotNull BuildsManager buildsManager, @NotNull ResponsibilityFacadeEx responsibilityFacade, @NotNull ProblemMutingService problemMutingService, @NotNull ExecutorServices executorServices, @NotNull BuildProblemInvestigationAuditLog investigationAuditLog, @NotNull SQLRunnerEx db)
-
BuildProblemInvestigationsAndMutesManagerImpl
public BuildProblemInvestigationsAndMutesManagerImpl(@NotNull ProjectManager projectManager, @NotNull BuildsManager buildsManager, @NotNull ResponsibilityFacadeEx responsibilityFacade, @NotNull ProblemMutingService problemMutingService, @NotNull ExecutorServices executor, @NotNull BuildProblemInvestigationAuditLog investigationAuditLog, @NotNull SQLRunnerEx db, @Nullable Integer delaySeconds)
-
-
Method Detail
-
start
public void start()
-
removeBuildProblemInvesigations
public void removeBuildProblemInvesigations(@NotNull List<BuildProblemResponsibilityEntry> toRemove, @NotNull String reason)
- Specified by:
removeBuildProblemInvesigations
in interfaceBuildProblemInvestigationsAndMutesManager
- Parameters:
toRemove
- collection of build problem investigations to removereason
- suffix of the message why investigations are removed by system
-
submitFixedProblems
public void submitFixedProblems(@NotNull Collection<BuildProblemInfo> fixedProblems, @NotNull SBuild build)
Description copied from interface:BuildProblemInvestigationsAndMutesManager
Use this method on a build finish, to submit a collection of problems fixed in the build.BuildProblemInvestigationsAndMutesManager
will automatically remove investigations or mutes for the submitted problems if they are fixed in the corresponding scope.- Specified by:
submitFixedProblems
in interfaceBuildProblemInvestigationsAndMutesManager
- Parameters:
fixedProblems
- - problems fixed in the scopebuild
- - finished build
-
-