mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Add code to use private NuGet feeds when running in internal CI system (#8187)
Add code to use private NuGet feeds when running in internal CI system
This commit is contained in:
+9
-3
@@ -51,9 +51,15 @@ phases:
|
||||
condition: succeededOrFailed()
|
||||
|
||||
- powershell: |
|
||||
git submodule update --init
|
||||
displayName: SubModule Init
|
||||
condition: succeededOrFailed()
|
||||
Import-Module $(Build.SourcesDirectory)/build.psm1 -Force
|
||||
New-NugetConfigFile -NugetFeedUrl $(AzDevOpsFeed) -UserName $(AzDevOpsFeedUserName) -ClearTextPAT $(AzDevOpsFeedPAT) -FeedName AzDevOpsFeed -Destination $(Build.SourcesDirectory)/src/Modules
|
||||
|
||||
if(-not (Test-Path "$(Build.SourcesDirectory)/src/Modules/nuget.config"))
|
||||
{
|
||||
throw "nuget.config is not created"
|
||||
}
|
||||
displayName: 'Add nuget.config for AzDevOps feed for PSGallery modules '
|
||||
condition: and(succeededOrFailed(), ne(variables['AzDevOpsFeed'], ''))
|
||||
|
||||
- powershell: |
|
||||
tools/travis.ps1 -Stage Bootstrap
|
||||
|
||||
+9
-3
@@ -26,9 +26,15 @@ phases:
|
||||
condition: ne(variables['Build.Reason'], 'PullRequest')
|
||||
|
||||
- powershell: |
|
||||
git submodule update --init
|
||||
displayName: SubModule Init
|
||||
condition: succeededOrFailed()
|
||||
Import-Module $(Build.SourcesDirectory)/build.psm1 -Force
|
||||
New-NugetConfigFile -NugetFeedUrl $(AzDevOpsFeed) -UserName $(AzDevOpsFeedUserName) -ClearTextPAT $(AzDevOpsFeedPAT) -FeedName AzDevOpsFeed -Destination $(Build.SourcesDirectory)/src/Modules
|
||||
|
||||
if(-not (Test-Path "$(Build.SourcesDirectory)/src/Modules/nuget.config"))
|
||||
{
|
||||
throw "nuget.config is not created"
|
||||
}
|
||||
displayName: 'Add nuget.config for AzDevOps feed for PSGallery modules '
|
||||
condition: and(succeededOrFailed(), ne(variables['AzDevOpsFeed'], ''))
|
||||
|
||||
- powershell: |
|
||||
tools/travis.ps1 -Stage Bootstrap
|
||||
|
||||
@@ -30,9 +30,15 @@ steps:
|
||||
condition: ne(variables['Build.Reason'], 'PullRequest')
|
||||
|
||||
- powershell: |
|
||||
git submodule update --init
|
||||
displayName: SubModule Init
|
||||
condition: succeededOrFailed()
|
||||
Import-Module $(Build.SourcesDirectory)/build.psm1 -Force
|
||||
New-NugetConfigFile -NugetFeedUrl $(AzDevOpsFeed) -UserName $(AzDevOpsFeedUserName) -ClearTextPAT $(AzDevOpsFeedPAT) -FeedName AzDevOpsFeed -Destination $(Build.SourcesDirectory)/src/Modules
|
||||
|
||||
if(-not (Test-Path "$(Build.SourcesDirectory)/src/Modules/nuget.config"))
|
||||
{
|
||||
throw "nuget.config is not created"
|
||||
}
|
||||
displayName: 'Add nuget.config for AzDevOps feed for PSGallery modules '
|
||||
condition: and(succeededOrFailed(), ne(variables['AzDevOpsFeed'], ''))
|
||||
|
||||
- powershell: |
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
|
||||
|
||||
Reference in New Issue
Block a user