Class RedundantVcsTriggerReport
- java.lang.Object
-
- jetbrains.buildServer.serverSide.healthStatus.HealthStatusReport
-
- jetbrains.buildServer.serverSide.healthStatus.reports.BuildTypeSettingsReport
-
- jetbrains.buildServer.serverSide.healthStatus.reports.BuildTriggerSettingsReport
-
- jetbrains.buildServer.serverSide.healthStatus.reports.RedundantVcsTriggerReport
-
- All Implemented Interfaces:
ServerExtension
,TeamCityExtension
public class RedundantVcsTriggerReport extends BuildTriggerSettingsReport
This report finds VCS triggers that are redudant due to existence of other VCS trigger higher in the build chain with enabledWATCH_CHANGES_IN_DEPENDENCIES_PARAM
option.
-
-
Field Summary
Fields Modifier and Type Field Description static String
BUILD_TYPE_KEY
static String
REDUNDANT_DUE_TO_KEY
static String
REPORT_TYPE
static String
TRIGGER_KEY
-
Constructor Summary
Constructors Constructor Description RedundantVcsTriggerReport(WebLinks webLinks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canReportItemsFor(HealthStatusScope scope)
Check whether the report can produce any items accepted by the specified scope.Collection<ItemCategory>
getCategories()
Problems categories producing by this problem finder.String
getDisplayName()
User presentable name of the problem finder.protected String
getTriggerName()
Name of inspected trigger.String
getType()
protected void
reportTriggerProblems(BuildTriggerDescriptor trigger, SBuildType buildType, HealthStatusItemConsumer resultConsumer)
-
Methods inherited from class jetbrains.buildServer.serverSide.healthStatus.reports.BuildTriggerSettingsReport
reportProblems
-
Methods inherited from class jetbrains.buildServer.serverSide.healthStatus.reports.BuildTypeSettingsReport
report
-
Methods inherited from class jetbrains.buildServer.serverSide.healthStatus.HealthStatusReport
equals, hashCode
-
-
-
-
Field Detail
-
REPORT_TYPE
public static final String REPORT_TYPE
- See Also:
- Constant Field Values
-
BUILD_TYPE_KEY
public static final String BUILD_TYPE_KEY
- See Also:
- Constant Field Values
-
TRIGGER_KEY
public static final String TRIGGER_KEY
- See Also:
- Constant Field Values
-
REDUNDANT_DUE_TO_KEY
public static final String REDUNDANT_DUE_TO_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RedundantVcsTriggerReport
public RedundantVcsTriggerReport(WebLinks webLinks)
-
-
Method Detail
-
getType
@NotNull public String getType()
- Specified by:
getType
in classHealthStatusReport
- Returns:
- unique identifier of the problem finder
-
getDisplayName
@NotNull public String getDisplayName()
Description copied from class:HealthStatusReport
User presentable name of the problem finder.- Specified by:
getDisplayName
in classHealthStatusReport
- Returns:
- name of the problem finder to show in the user interface.
-
getCategories
@NotNull public Collection<ItemCategory> getCategories()
Description copied from class:HealthStatusReport
Problems categories producing by this problem finder. All problems of 'undeclared' categories will be filtered even if they were consumed.- Specified by:
getCategories
in classHealthStatusReport
- Returns:
- Unmodifiable not-empty collection of unique categories producing by this problem finder.
-
canReportItemsFor
public boolean canReportItemsFor(HealthStatusScope scope)
Description copied from class:HealthStatusReport
Check whether the report can produce any items accepted by the specified scope.HealthStatusReport.report(HealthStatusScope, HealthStatusItemConsumer)
will not be called if this method return false. Implementations should not perform any complex calculations, they are expected to quickly analyzeHealthStatusScope
and return false if it is clear that they can not report any acceptable items. For example, they can return false if they can't produce items with the requested severity (that is accepted byHealthStatusScope.isItemWithSeverityAccepted(ItemSeverity)
).- Specified by:
canReportItemsFor
in classHealthStatusReport
-
reportTriggerProblems
protected void reportTriggerProblems(BuildTriggerDescriptor trigger, SBuildType buildType, HealthStatusItemConsumer resultConsumer)
- Specified by:
reportTriggerProblems
in classBuildTriggerSettingsReport
-
getTriggerName
protected String getTriggerName()
Description copied from class:BuildTriggerSettingsReport
Name of inspected trigger.- Specified by:
getTriggerName
in classBuildTriggerSettingsReport
-
-