Interface BuildCleanupContextEx
-
- All Superinterfaces:
BuildCleanupContext
,CleanupContext
- All Known Implementing Classes:
BuildCleanupContextImpl
public interface BuildCleanupContextEx extends BuildCleanupContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CleanupProcessStateEx
getCleanupState()
KeepBuildData
getKeepBuildData(SFinishedBuild build)
Provides the build data to preserve.Set<Long>
getProblematicBuildsIds()
-
Methods inherited from interface jetbrains.buildServer.serverSide.cleanup.BuildCleanupContext
getBuildIds, getBuilds, getCleanupLevel, getCleanupPolicyForBuild, getErrorReporter, getExtensionData, onBuildCleanupError, setExtensionData
-
-
-
-
Method Detail
-
getProblematicBuildsIds
@NotNull Set<Long> getProblematicBuildsIds()
- Returns:
- the set of builds ids for errors reported via
BuildCleanupContext.onBuildCleanupError(BuildsCleanupExtension, SBuild, String)
orErrorReporter
-
getCleanupState
@NotNull CleanupProcessStateEx getCleanupState()
- Specified by:
getCleanupState
in interfaceCleanupContext
- Returns:
- current cleanup state
-
getKeepBuildData
@NotNull KeepBuildData getKeepBuildData(@NotNull SFinishedBuild build)
Provides the build data to preserve.- Parameters:
build
- a build fromBuildCleanupContext.getBuilds()
- Returns:
- build data to preserve
- Since:
- 2019.2
-
-