AzurePipelinesCommands.

UploadArtifact(string, FilePath) Method

Summary

Upload local file into a file container folder.

Syntax

public void UploadArtifact(string folderName, FilePath file)

Examples

if (BuildSystem.AzurePipelines.IsRunningOnAzurePipelines)
{
    BuildSystem.AzurePipelines.Commands.UploadArtifact("drop", "./artifacts/package.nupkg");
}

Parameters

Name Type Description
folderName string Folder that the file will upload to.
file FilePath Path to the local file.

Return Value

Type Description
void