IBuildDefinition Methods

IBuildDefinition Methods

The IBuildDefinition type exposes the following members.

  Name Description
Public method AddRetentionPolicy Adds a retention policy to the list of retention policies of this build definition.
Public method AddSchedule Adds a schedule to the list of schedules for the build definition. The schedule has no effect if the ContinuousIntegrationType is not Schedule. Only one schedule is accepted in the list.
Public method CopyFrom Updates the current build definition instance using the property values in the provided build definition.
Public method CreateBuildRequest Creates a build request from the build definition that has values for IBuildAgent and drop location set to the default build agent and default drop location.
Public method CreateManualBuild(String) Creates a build detail record in the Team Foundation Server build database. Build information and other changes can be made to the returned IBuildDetail object.
Public method CreateManualBuild(String, String) Creates a build detail record in the Team Foundation Server build database. Build information and other changes can be made to the returned IBuildDetail object.
Public method CreateManualBuild(String, String, BuildStatus, IBuildController, String) Creates a build detail record in the Team Foundation Server build database.
Public method CreateSpec Creates a new build specification for the build definition.
Public method Delete Deletes the build definition and all its builds from the server.
Public method QueryBuilds Gets all the builds for this build definition.
Public method Refresh() Refreshes this build group item by getting current property values from the build server. (Inherited from IBuildGroupItem.)
Public method Refresh(String[], QueryOptions) Refresh this build definition by getting updated property values from the server.
Public method Save Saves any changes that were made to the IBuildDefinition object to the server.
Top

  Name Description
Public Extension Method CreateInitialSourceProvider This extension method should no longer be used. It is here for backwards compatibility only. (Defined by BuildServerExtensions.)
Public Extension Method CreateSourceProvider (Defined by BuildServerExtensions.)
Public Extension Method GetDefaultSourceProvider This extension method for IBuildDefinition retuns the first source provider for the definition. If no source provider is listed, an empty TFVC provider is returned. (Defined by BuildServerExtensions.)
Public Extension Method SetSourceProvider This extension method should no longer be used. It is here for backwards compatibility only. (Defined by BuildServerExtensions.)
Top
Show:
© 2016 Microsoft