RetentionPolicy Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.BaseSecuredObjectRetentionPolicy
- 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. |