Skip to content

Commit d631a68

Browse files
gavinbarronCopilot
andauthored
ci: Route NuGet restore through the CFS central package feed (#1448)
Routes CI package restore through the authenticated GraphDeveloperExperiences_Public Azure Artifacts feed (network isolation / CFS compliance). Requires a pipeline run to validate against the feed. Copilot-Session: 9bd6fe40-0d69-4e3f-927b-8628c0ab6d34 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 83d711f commit d631a68

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

‎.azure-pipelines/generation-pipeline.yml‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,20 @@ extends:
201201
targetPath: '$(Build.ArtifactStagingDirectory)'
202202
artifactName: typewriter
203203
steps:
204+
- task: NuGetAuthenticate@1
205+
displayName: 'Authenticate to Azure Artifacts'
206+
207+
- pwsh: |
208+
@"
209+
<?xml version="1.0" encoding="utf-8"?>
210+
<configuration>
211+
<packageSources>
212+
<clear />
213+
<add key="GraphDeveloperExperiences_Public" value="https://microsoftgraph.pkgs.visualstudio.com/0985d294-5762-4bc2-a565-161ef349ca3e/_packaging/GraphDeveloperExperiences_Public/nuget/v3/index.json" />
214+
</packageSources>
215+
</configuration>
216+
"@ | Set-Content -Path "$(Build.SourcesDirectory)/nuget.config" -Encoding UTF8
217+
displayName: 'Create nuget.config (central feed)'
204218
- template: /.azure-pipelines/generation-templates/build-and-publish-typewriter.yml@self
205219
- stage: stage_build_and_publish_kiota
206220
dependsOn: [] # remove the implicit dependency to any previous stage
@@ -212,6 +226,20 @@ extends:
212226
targetPath: '$(Build.ArtifactStagingDirectory)'
213227
artifactName: kiota
214228
steps:
229+
- task: NuGetAuthenticate@1
230+
displayName: 'Authenticate to Azure Artifacts'
231+
232+
- pwsh: |
233+
@"
234+
<?xml version="1.0" encoding="utf-8"?>
235+
<configuration>
236+
<packageSources>
237+
<clear />
238+
<add key="GraphDeveloperExperiences_Public" value="https://microsoftgraph.pkgs.visualstudio.com/0985d294-5762-4bc2-a565-161ef349ca3e/_packaging/GraphDeveloperExperiences_Public/nuget/v3/index.json" />
239+
</packageSources>
240+
</configuration>
241+
"@ | Set-Content -Path "$(Build.SourcesDirectory)/nuget.config" -Encoding UTF8
242+
displayName: 'Create nuget.config (central feed)'
215243
- template: /.azure-pipelines/generation-templates/build-and-publish-kiota.yml@self
216244
# Downloads the latest public beta metadata. If there are changes, we checkin
217245
# the public metadata into microsoftgraph/msgraph-metadata, and then run the

0 commit comments

Comments
 (0)