ITFBuildCommands Interface

Summary

Represents a TF Build command provider.
Namespace
Cake.Common.Build.TFBuild
Implementing Types
graph BT Type["ITFBuildCommands"] class Type type-node Implementing0["TFBuildCommands"]-.->Type click Implementing0 "/api/Cake.Common.Build.TFBuild/TFBuildCommands"

Syntax

public interface ITFBuildCommands

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<ITFBuildCommands>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<ITFBuildCommands>(ITFBuildCommands[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<ITFBuildCommands>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<ITFBuildCommands>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<ITFBuildCommands>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<ITFBuildCommands>(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