11 lines
542 B
YAML
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'], ''))
|