Skip to content

Commit cfdfc6c

Browse files
committed
PGO - use a FIC?
1 parent 8d94edd commit cfdfc6c

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

build/pgo_nuget.config

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageSources>
4+
<clear />
5+
<!-- Dependencies that we can turn on to force override for testing purposes before uploading. -->
6+
<!--<add key="Static Package Dependencies" value="dep\packages" />-->
7+
<add key="TerminalDependencies" value="https://pkgs.dev.azure.com/shine-oss/terminal/_packaging/TerminalDependencies/nuget/v3/index.json" />
8+
</packageSources>
9+
<disabledPackageSources>
10+
<clear />
11+
</disabledPackageSources>
12+
<config>
13+
<!-- TODO: TEMPORARY UNTIL PGO-Helpers is updated to search both. We shouldn't need to keep the globals path here. -->
14+
<add key="globalPackagesFolder" value=".\packages" />
15+
<add key="repositorypath" value=".\packages" />
16+
</config>
17+
</configuration>

build/pipelines/templates-v2/job-pgo-build-nuget-and-publish.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ jobs:
4545

4646
- task: NuGetAuthenticate@1
4747
inputs:
48-
nuGetServiceConnections: 'Terminal Public Artifact Feed'
48+
azureDevOpsServiceConnection: 'Terminal Public Artifact Feed'
49+
feedUrl: "https://pkgs.dev.azure.com/shine-oss/terminal/_packaging/TerminalDependencies/nuget/v3/index.json"
4950

5051
# In the Microsoft Azure DevOps tenant, NuGetCommand is ambiguous.
5152
# This should be `task: NuGetCommand@2`
@@ -75,8 +76,5 @@ jobs:
7576
nuGetFeedType: external
7677
packagesToPush: $(Build.ArtifactStagingDirectory)/*.nupkg
7778
# The actual URL and PAT for this feed is configured at
78-
# https://microsoft.visualstudio.com/Dart/_settings/adminservices
79-
# This is the name of that connection
80-
publishFeedCredentials: 'Terminal Public Artifact Feed'
8179
feedsToUse: config
82-
nugetConfigPath: '$(Build.SourcesDirectory)/NuGet.config'
80+
nugetConfigPath: '$(Build.SourcesDirectory)/build/pgo_nuget.config'

0 commit comments

Comments
 (0)