Skip to content

Commit 947f6fc

Browse files
committed
Exclude PS repository registration.
1 parent 55f4f17 commit 947f6fc

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

.azure-pipelines/common-templates/install-tools.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)