File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
.azure-pipelines/common-templates Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -37,21 +37,3 @@ steps:
3737 command : custom
3838 customCommand : install -g autorest@latest
3939
40- - task : PowerShell@2
41- displayName : Register PS Repository
42- enabled : true
43- inputs :
44- targetType : inline
45- pwsh : true
46- errorActionPreference : stop
47- script : |
48- Get-PSRepository
49- $patToken = '$(NUGETFEEDKEY)' | ConvertTo-SecureString -AsPlainText -Force
50- $nugetFeed = '$(NUGETFEED)'
51- $nugetFeedName = '$(NUGETFEEDNAME)'
52- $user = '$(NUGETBUILDUSER)'
53- $credsAzureDevopsServices = New-Object System.Management.Automation.PSCredential($user, $patToken)
54- Unregister-PSRepository -Name $nugetFeedName -ErrorAction Continue
55- Register-PSRepository -Name $nugetFeedName -SourceLocation $nugetFeed -PublishLocation $nugetFeed -InstallationPolicy Trusted -Credential $credsAzureDevopsServices
56- Get-PSRepository
57- Find-Module -Name Microsoft.Graph.Authentication -AllowPrerelease -Repository $nugetFeedName
You can’t perform that action at this time.
0 commit comments