public interface StaleJobService
extends net.nemerosa.ontrack.job.orchestrator.JobOrchestratorSupplier
| Modifier and Type | Method and Description |
|---|---|
void |
detectAndManageStaleBranch(net.nemerosa.ontrack.model.structure.Branch branch,
java.time.LocalDateTime disablingTime,
java.time.LocalDateTime deletionTime,
java.util.List<java.lang.String> promotionsToKeep)
Applies the given retention times to the branch.
|
void |
detectAndManageStaleBranches(net.nemerosa.ontrack.job.JobRunListener runListener,
net.nemerosa.ontrack.model.structure.Project project)
If the project is configured for stale branches, applies its policy to all its branches.
|
void detectAndManageStaleBranches(net.nemerosa.ontrack.job.JobRunListener runListener,
net.nemerosa.ontrack.model.structure.Project project)
runListener - Listener (for logging)project - Project to scanvoid detectAndManageStaleBranch(net.nemerosa.ontrack.model.structure.Branch branch,
java.time.LocalDateTime disablingTime,
java.time.LocalDateTime deletionTime,
java.util.List<java.lang.String> promotionsToKeep)
branch - Branch to managedisablingTime - Time before which the branch must be disabled (null if not applicable)deletionTime - Time before which the branch must be deleted (null if not applicable)promotionsToKeep - List of promotions to keep (if the branch has one of those promotions, it cannot be
disabled or removed). Note that the list might be null or empty.