PowerShell/tools/releaseBuild/azureDevOps/templates/insert-nuget-config-azfeed.yml
2020-11-23 14:50:00 -08:00

11 lines
542 B
YAML

steps:
- powershell: |
Import-Module $env:REPOROOT/build.psm1 -Force
New-NugetConfigFile -NugetFeedUrl $(AzDevOpsFeed) -UserName $(AzDevOpsFeedUserName) -ClearTextPAT $(AzDevOpsFeedPAT) -FeedName AzDevOpsFeed -Destination $env:REPOROOT/src/Modules
if(-not (Test-Path "$env:REPOROOT/src/Modules/nuget.config"))
{
throw "nuget.config is not created"
}
displayName: 'Add nuget.config for Azure DevOps feed for PSGallery modules'
condition: and(succeededOrFailed(), ne(variables['AzDevOpsFeed'], ''))