Summary
Upload local file into a file container folder.
- Namespace
- Cake
.Common .Build .AzurePipelines - Containing Type
- Azure
Pipelines Commands
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 |
