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:
Travis Plunk
2018-11-06 09:52:14 -08:00
committed by GitHub
parent 7b243d59da
commit e702119177
3 changed files with 27 additions and 9 deletions
+9 -3
View File
@@ -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
View File
@@ -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
+9 -3
View File
@@ -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