Internet Explorer is no longer supported. Many things will still work, but your experience will be degraded and some things won't function. Please use a modern browser such as Edge, Chrome, or Firefox.

Upload-Assets

Uploads files to a ProGet Asset Directory.

Script usage:

ProGet::Upload-Assets(
	[To: <text>],
	[Include: <@(text)>],
	[Exclude: <@(text)>],
	[From: <text>],
	[ProxyData: <true/false>],
	[Source: <text>],
	[Resource: <text>],
	[EndpointUrl: <text>],
	[ApiKey: <text>],
	[UserName: <text>],
	[Password: <text>]
);

Arguments:

NameFormatScript UsageUsage Notes
To
text
To
Include
@(text)
Include
See KB#1119 to learn more about masking syntax. Value note: "* (top-level items)".
Exclude
@(text)
Exclude
See KB#1119 to learn more about masking syntax.
Source directory
text
From
Value note: "$WorkingDirectory".
Proxy data through BuildMaster/Otter
true/false
ProxyData
When true, requests will be made from the BuildMaster/Otter server instead of directly from the server in context.
Source
text
Source
Secure resource (legacy)
text
Resource
API endpoint URL
text
EndpointUrl
Not specifying will "Use URL from secure resource".
API key
text
ApiKey
Not specifying will "Use token from secure credentials".
User name
text
UserName
Not specifying will "Use user name from secure credentials".
Password
text
Password
Not specifying will "Use password from secure credentials".

Example:


# upload all .zip files from the working directory to the remotedir/subdir directory on the MyAssetDirResource asset directory
ProGet::Upload-Assets
(
    From: $WorkingDirectory,
    To: remotedir/subdir,
    Include: *.zip,
    Resource: MyAssetDirResource
);