From 316b498802b7d293689b3058f215b354b82dc6a5 Mon Sep 17 00:00:00 2001 From: DotNet Bot Date: Fri, 3 Apr 2020 18:29:08 +0000 Subject: [PATCH] Add internal feed build steps --- eng/pipeline.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/eng/pipeline.yml b/eng/pipeline.yml index 70e27a7bd4a..64e9a08ba16 100644 --- a/eng/pipeline.yml +++ b/eng/pipeline.yml @@ -67,6 +67,8 @@ jobs: value: '' - name: _HelixCreator value: ${{ parameters.repoName }} + - name: _InternalRuntimeDownloadArgs + value: '' # Override some values if we're building internally @@ -109,6 +111,10 @@ jobs: value: '' #if _HelixToken is set, Creator must be empty - name: _TestHelixAgentPool value: 'Windows.10.Amd64.ClientRS5' # Preferred: 'Windows.10.Amd64%3bWindows.7.Amd64%3bWindows.10.Amd64.ClientRS5' + - group: DotNet-MSRC-Storage + - name: _InternalRuntimeDownloadArgs + value: /p:DotNetRuntimeSourceFeed=https://dotnetclimsrc.blob.core.windows.net/dotnet + /p:DotNetRuntimeSourceFeedKey=$(dotnetclimsrc-read-sas-token-base64) strategy: matrix: @@ -136,6 +142,15 @@ jobs: - powershell: eng\pre-build.ps1 displayName: Pre-Build - Set VSO Variables + - ${{ if ne(variables['System.TeamProject'], 'public') }}: + - task: PowerShell@2 + displayName: Setup Private Feeds Credentials + inputs: + filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1 + arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token + env: + Token: $(dn-bot-dnceng-artifact-feeds-rw) + # Use utility script to run script command dependent on agent OS. - script: eng\common\cibuild.cmd -configuration $(_BuildConfig) @@ -144,6 +159,7 @@ jobs: $(_SignArgs) $(_OfficialBuildIdArgs) $(_PlatformArgs) + $(_InternalRuntimeDownloadArgs) displayName: Windows Build / Publish # This condition should be kept in sync with the condition for 'Run DRTs' step # When building on a regular pipeline (!_HelixPipeline), build as usual