Skip to content

Commit 4e06052

Browse files
fix(ci): daily CI pipeline configuration
- Add missing image property to 1ES pool config - Switch pool OS to Windows to align with release pipeline - Add Azure Artifacts feed for NuGet restore to bypass network isolation - Install both .NET 8 and .NET 10 SDKs for all test target frameworks Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 03cda9c commit 4e06052

1 file changed

Lines changed: 26 additions & 4 deletions

File tree

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

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ extends:
2121
parameters:
2222
pool:
2323
name: Azure-Pipelines-1ESPT-ExDShared
24-
os: linux
24+
image: windows-latest
25+
os: windows
2526
sdl:
2627
sourceAnalysisPool:
2728
name: Azure-Pipelines-1ESPT-ExDShared
@@ -43,12 +44,33 @@ extends:
4344
submodules: recursive
4445

4546
- task: UseDotNet@2
46-
displayName: Set up .NET
47+
displayName: Set up .NET 8
4748
inputs:
4849
packageType: 'sdk'
49-
version: '8.x'
50+
version: 8.x
5051

51-
- script: dotnet restore Microsoft.Graph.sln
52+
- task: UseDotNet@2
53+
displayName: Set up .NET 10
54+
inputs:
55+
packageType: 'sdk'
56+
version: 10.x
57+
58+
- task: NuGetAuthenticate@1
59+
displayName: Authenticate to Azure Artifacts
60+
61+
- powershell: |
62+
@"
63+
<?xml version="1.0" encoding="utf-8"?>
64+
<configuration>
65+
<packageSources>
66+
<clear />
67+
<add key="GraphDeveloperExperiences_Public" value="$(NUGET_FEED_URI)" />
68+
</packageSources>
69+
</configuration>
70+
"@ | Set-Content -Path "$(Build.SourcesDirectory)\nuget.config" -Encoding UTF8
71+
displayName: Create nuget.config
72+
73+
- script: dotnet restore Microsoft.Graph.sln --configfile nuget.config
5274
displayName: Restore dependencies
5375
workingDirectory: $(Build.SourcesDirectory)
5476

0 commit comments

Comments
 (0)