Apparently this was updated in BuildMaster but not Otter, here is the documentation for the updated version that also applies to yours, substituting $CredentialProperty
for $GetCredentialProperty
:
# ProGetCreds is an instance of Inedo Product Credentials (i.e. InedoProduct::ProGetCreds) with 'Allow encrypted properties...' checked
set $key = $CredentialProperty(ProGetCreds, ApiKey);
set $host = $CredentialProperty(ProGetCreds, Host);
Log-Debug Getting ProGet package from $host with API key: $key;
ProGet::Get-Package(
Credentials: ProGetCreds,
Feed: hdars-1k,
Name: hdars,
Directory: $WorkingDirectory
);
Additionally, I will notify our product director to add an issue to fix this in Otter (it would still be backwards compatible, but the canonical name would become $CredentialProperty
)