ardiffact

Home > @microsoft/azure-artifact-storage > uploadArtifacts

uploadArtifacts() function

Uploads files in a specified folder to Azure Blob Storage

Signature:

export declare function uploadArtifacts(dirPath: string, prefix: string, config: AzureBlobStorageConfig, gzip?: boolean): Promise<void>;

Parameters

Parameter Type Description
dirPath string Directory path containing the artifacts to upload
prefix string Prefix to append to the file name which makes the blob name to be uploaded to Azure Blob Storage
config AzureBlobStorageConfig The AzureBlobStorageConfig object used to create an instance of a Storage client
gzip boolean Whether to compress the artifacts using Gzip

Returns:

Promise<void>

void