Skip to content

Commit b33fe6a

Browse files
gavinbarronCopilot
andcommitted
fix(ci): restore packages from approved authenticated feed
Co-authored-by: Copilot App <[email protected]> Copilot-Session: c631d217-9378-4cee-8c7e-761043ff3ae5
1 parent c7f9c51 commit b33fe6a

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

‎.azure-pipelines/ci-build.yml‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,21 @@ extends:
7878
versionSpec: '>=6.11.0'
7979
checkLatest: true
8080

81+
- task: NuGetAuthenticate@1
82+
displayName: 'Authenticate approved NuGet feed'
83+
84+
- pwsh: |
85+
@'
86+
<?xml version="1.0" encoding="utf-8"?>
87+
<configuration>
88+
<packageSources>
89+
<clear />
90+
<add key="GraphDeveloperExperiences_Public" value="https://microsoftgraph.pkgs.visualstudio.com/0985d294-5762-4bc2-a565-161ef349ca3e/_packaging/GraphDeveloperExperiences_Public/nuget/v3/index.json" />
91+
</packageSources>
92+
</configuration>
93+
'@ | Set-Content -Path '$(Build.SourcesDirectory)\nuget.config'
94+
displayName: 'Configure approved NuGet feed'
95+
8196
# Build the Product project
8297
- task: DotNetCoreCLI@2
8398
displayName: 'build'

‎.azure-pipelines/hidi-release.yml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,19 @@ extends:
6060
inputs:
6161
versionSpec: '>=6.11.0'
6262
checkLatest: true
63+
- task: NuGetAuthenticate@1
64+
displayName: Authenticate approved NuGet feed
65+
- pwsh: |
66+
@'
67+
<?xml version="1.0" encoding="utf-8"?>
68+
<configuration>
69+
<packageSources>
70+
<clear />
71+
<add key="GraphDeveloperExperiences_Public" value="https://microsoftgraph.pkgs.visualstudio.com/0985d294-5762-4bc2-a565-161ef349ca3e/_packaging/GraphDeveloperExperiences_Public/nuget/v3/index.json" />
72+
</packageSources>
73+
</configuration>
74+
'@ | Set-Content -Path '$(Build.SourcesDirectory)\nuget.config'
75+
displayName: Configure approved NuGet feed
6376
- pwsh: |
6477
$version = ([xml](Get-Content src\Microsoft.OpenApi.Hidi\Microsoft.OpenApi.Hidi.csproj)).Project.PropertyGroup.Version
6578
if ($version -notmatch '^2\.\d+\.\d+(-[0-9A-Za-z.-]+)?$') { throw "Expected a hidi 2.x version, got $version." }

0 commit comments

Comments
 (0)