1
+ # We only want to run IdentityModel matrix on main
2
+ pr : none
3
+ trigger : none
4
+ schedules :
5
+ # Cron timezone is UTC.
6
+ - cron : " 0 */12 * * *"
7
+ branches :
8
+ include :
9
+ - release/8.0
10
+ always : true
11
+
12
+ variables :
13
+ - name : _UseHelixOpenQueues
14
+ value : false
15
+ - group : DotNet-HelixApi-Access
16
+ - template : /eng/common/templates-official/variables/pool-providers.yml@self
17
+
18
+ resources :
19
+ repositories :
20
+ # Repo: 1ESPipelineTemplates/1ESPipelineTemplates
21
+ - repository : 1esPipelines
22
+ type : git
23
+ name : 1ESPipelineTemplates/1ESPipelineTemplates
24
+ ref : refs/tags/release
25
+
26
+ extends :
27
+ template : v1/1ES.Official.PipelineTemplate.yml@1esPipelines
28
+ parameters :
29
+ sdl :
30
+ sourceAnalysisPool :
31
+ name : NetCore1ESPool-Svc-Internal
32
+ image : 1es-windows-2022
33
+ os : windows
34
+ codeql :
35
+ compiled :
36
+ enabled : false
37
+ justificationForDisabling : ' This is a test-only pipeline. The same product code is already scanned in the main pipeline (aspnetcore-ci)'
38
+
39
+ stages :
40
+ - stage : build
41
+ displayName : Build
42
+ jobs :
43
+ - template : .azure/pipelines/jobs/default-build.yml@self
44
+ parameters :
45
+ jobName : IdentityModel_helix_matrix_x64
46
+ jobDisplayName : ' Tests: IdentityModel nightlies helix full matrix x64'
47
+ agentOs : Windows
48
+ timeoutInMinutes : 300
49
+ steps :
50
+ - task : NuGetAuthenticate@1
51
+ inputs :
52
+ forceReinstallCredentialProvider : true
53
+ - task : NuGetCommand@2
54
+ displayName : Install Microsoft.IdentityModel.Logging
55
+ inputs :
56
+ command : ' custom'
57
+ arguments : ' install Microsoft.IdentityModel.Logging
58
+ -Source https://pkgs.dev.azure.com/dnceng/internal/_packaging/identitymodel-nightlies/nuget/v3/index.json
59
+ -DependencyVersion Highest -OutputDirectory $(Build.StagingDirectory) -PreRelease'
60
+ - task : NuGetCommand@2
61
+ displayName : Install Microsoft.IdentityModel.Protocols.OpenIdConnect
62
+ inputs :
63
+ command : ' custom'
64
+ arguments : ' install Microsoft.IdentityModel.Protocols.OpenIdConnect
65
+ -Source https://pkgs.dev.azure.com/dnceng/internal/_packaging/identitymodel-nightlies/nuget/v3/index.json
66
+ -DependencyVersion Highest -OutputDirectory $(Build.StagingDirectory) -PreRelease'
67
+ - task : NuGetCommand@2
68
+ displayName : Install Microsoft.IdentityModel.Protocols.WsFederation
69
+ inputs :
70
+ command : ' custom'
71
+ arguments : ' install Microsoft.IdentityModel.Protocols.WsFederation
72
+ -Source https://pkgs.dev.azure.com/dnceng/internal/_packaging/identitymodel-nightlies/nuget/v3/index.json
73
+ -DependencyVersion Highest -OutputDirectory $(Build.StagingDirectory) -PreRelease'
74
+ - task : NuGetCommand@2
75
+ displayName : System.IdentityModel.Tokens.Jwt
76
+ inputs :
77
+ command : ' custom'
78
+ arguments : ' install System.IdentityModel.Tokens.Jwt
79
+ -Source https://pkgs.dev.azure.com/dnceng/internal/_packaging/identitymodel-nightlies/nuget/v3/index.json
80
+ -DependencyVersion Highest -OutputDirectory $(Build.StagingDirectory) -PreRelease'
81
+ - task : PowerShell@2
82
+ displayName : Add IdentityModel feel to NuGet.config
83
+ inputs :
84
+ filePath : $(Build.SourcesDirectory)/eng/scripts/SetupIdentitySources.ps1
85
+ arguments : -ConfigFile $(Build.SourcesDirectory)/NuGet.config -IdentityModelPackageSource $(Build.StagingDirectory)
86
+ # Build the shared framework
87
+ - script : ./eng/build.cmd -ci -nobl -all -pack -arch x64
88
+ /p:CrossgenOutput=false /p:IsIdentityModelTestJob=true /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log
89
+ displayName : Build shared fx
90
+ # -noBuildRepoTasks -noBuildNative -noBuild to avoid repeating work done in the previous step.
91
+ - script : .\eng\build.cmd -ci -nobl -all -noBuildRepoTasks -noBuildNative -noBuild -test
92
+ -projects eng\helix\helix.proj /p:IsHelixJob=true /p:RunTemplateTests=false
93
+ /p:CrossgenOutput=false /p:IsIdentityModelTestJob=true /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log
94
+ displayName : Run build.cmd helix target
95
+ env :
96
+ HelixApiAccessToken : $(HelixApiAccessToken) # Needed for internal queues
97
+ SYSTEM_ACCESSTOKEN : $(System.AccessToken) # We need to set this env var to publish helix results to Azure Dev Ops
98
+ artifacts :
99
+ - name : Helix_logs
100
+ path : artifacts/log/
101
+ publishOnError : true
0 commit comments