Edit

Share via


RetentionPolicy Class

Definition

Represents a retention policy for a build definition.

[System.Runtime.Serialization.DataContract]
public class RetentionPolicy : Microsoft.VisualStudio.Services.WebApi.BaseSecuredObject
type RetentionPolicy = class
    inherit BaseSecuredObject
Public Class RetentionPolicy
Inherits BaseSecuredObject
Inheritance
Microsoft.VisualStudio.Services.WebApi.BaseSecuredObject
RetentionPolicy
Attributes

Constructors

RetentionPolicy()
RetentionPolicy(ISecuredObject)

Properties

ArtifactsToDelete

The list of artifacts to delete.

ArtifactTypesToDelete

The list of types of artifacts to delete.

Branches

The list of branches affected by the retention policy.

DaysToKeep

The number of days to keep builds.

DeleteBuildRecord

Indicates whether the build record itself should be deleted.

DeleteTestResults

Indicates whether to delete test results associated with the build.

MinimumToKeep

The minimum number of builds to keep.

Applies to