TFBuildCommands Class

Summary

Responsible for issuing TF Build agent commands (see ).
Namespace
Cake.Common.Build.TFBuild
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["ITFBuildCommands"] click Interface0 "/api/Cake.Common.Build.TFBuild/ITFBuildCommands" Type["TFBuildCommands"] class Type type-node

Syntax

public sealed class TFBuildCommands : ITFBuildCommands

Constructors

Name Summary
TFBuildCommands(ICakeEnvironment, ICakeLog) Initializes a new instance of the TFBuildCommands class.

Methods

Name Value Summary
AddBuildTag(string) void
Add a tag for current build.
CompleteCurrentTask() void
Finish timeline record for current task and set task result to succeeded.
CompleteCurrentTask(TFBuildTaskResult) void
Finish timeline record for current task and set task result.
CreateNewRecord(string, string, int) Guid
Create detail timeline record.
CreateNewRecord(string, string, int, TFBuildRecordData) Guid
Create detail timeline record.
LinkArtifact(string, TFBuildArtifactType, string) void
Create an artifact link, such as a file or folder path or a version control path.
PublishCodeCoverage(FilePath, Action<TFBuildPublishCodeCoverageData>) void
Publishes and uploads code coverage results
PublishCodeCoverage(FilePath, TFBuildPublishCodeCoverageData) void
Publishes and uploads code coverage results
PublishCodeCoverage(TFBuildPublishCodeCoverageData) void
Publishes and uploads code coverage results
PublishTestResults(TFBuildPublishTestResultsData) void
Publishes and uploads tests results
SetProgress(int, string) void
Set progress and current operation for current task.
SetSecretVariable(string, string) void
Sets a secret variable in the variable service of the task context.
SetVariable(string, string) void
Sets a variable in the variable service of the task context.
UpdateBuildNumber(string) void
Update build number for current build.
UpdateRecord(Guid, TFBuildRecordData) void
Update an existing detail timeline record.
UploadArtifact(string, FilePath) void
Upload local file into a file container folder.
UploadArtifact(string, FilePath, string) void
Upload local file into a file container folder, and create an artifact.
UploadArtifactDirectory(DirectoryPath) void
Upload local directory as a container folder, and create an artifact.
UploadArtifactDirectory(DirectoryPath, string) void
Upload local directory as a container folder, and create an artifact with the specified name.
UploadBuildLogFile(FilePath) void
Upload additional log to build container's logs/tool folder.
UploadTaskLogFile(FilePath) void
Upload file as additional log information to the current timeline record.
UploadTaskSummary(FilePath) void
Upload and attach summary markdown to current timeline record.
WriteError(string) void
Log an error to timeline record of current task.
WriteError(string, TFBuildMessageData) void
Log an error with detailed data to timeline record of current task.
WriteWarning(string) void
Log a warning issue to timeline record of current task.
WriteWarning(string, TFBuildMessageData) void
Log a warning issue with detailed data to timeline record of current task.

Extension Methods

Name Value Summary
Dump<TFBuildCommands>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<TFBuildCommands>(TFBuildCommands[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<TFBuildCommands>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<TFBuildCommands>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<TFBuildCommands>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<TFBuildCommands>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin