Represents a retention policy for a build definition.

interface RetentionPolicy {
    artifacts?: string[];
    artifactTypesToDelete?: string[];
    branches?: string[];
    daysToKeep?: number;
    deleteBuildRecord?: boolean;
    deleteTestResults?: boolean;
    minimumToKeep?: number;
}

Properties

artifacts?: string[]
artifactTypesToDelete?: string[]
branches?: string[]
daysToKeep?: number

The number of days to keep builds.

deleteBuildRecord?: boolean

Indicates whether the build record itself should be deleted.

deleteTestResults?: boolean

Indicates whether to delete test results associated with the build.

minimumToKeep?: number

The minimum number of builds to keep.