Summary
Upload local file into a file container folder, and create an artifact.
Syntax
public void UploadArtifact(string folderName, FilePath file, string artifactName)
Examples
if (BuildSystem.AzurePipelines.IsRunningOnAzurePipelines)
{
BuildSystem.AzurePipelines.Commands.UploadArtifact("drop", "./artifacts/package.nupkg", "nuget");
}
Parameters
| Name |
Type |
Description |
| folderName |
string |
Folder that the file will upload to. |
| file |
FilePath |
Path to the local file. |
| artifactName |
string |
The artifact name. |
Return Value