AzureDevOpsBuild.

LinkArtifact(string, string, string) Method

Summary

Create an artifact link, such as a file or folder path or a version control path.

Syntax

public AzureDevOpsBuildArtifact LinkArtifact(string name, string type, string location)

Parameters

Name Type Description
name string The artifact name.
type string The artifact type. The following artifact types are supported:
Type Description
FilePath File path type
GitRef Git reference type
TFVCLabel TFVC label type
VersionControl Version control path type
location string The link path or value.

Return Value

Type Description
AzureDevOpsBuildArtifact Description of the new artifact or null if no build could be found and ThrowExceptionIfBuildCouldNotBeFound is set to false.