|
| 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 | + - main |
| 10 | + - release/8.0 |
| 11 | + always: true |
| 12 | + |
| 13 | +variables: |
| 14 | +- name: _UseHelixOpenQueues |
| 15 | + value: false |
| 16 | +- group: DotNet-HelixApi-Access |
| 17 | +- template: /eng/common/templates/variables/pool-providers.yml |
| 18 | + |
| 19 | +jobs: |
| 20 | +- template: jobs/default-build.yml |
| 21 | + parameters: |
| 22 | + jobName: IdentityModel_helix_matrix_x64 |
| 23 | + jobDisplayName: 'Tests: IdentityModel nightlies helix full matrix x64' |
| 24 | + agentOs: Windows |
| 25 | + timeoutInMinutes: 300 |
| 26 | + steps: |
| 27 | + - task: NuGetAuthenticate@1 |
| 28 | + - task: NuGetCommand@2 |
| 29 | + displayName: Install Microsoft.IdentityModel.Logging |
| 30 | + inputs: |
| 31 | + command: 'custom' |
| 32 | + arguments: 'install Microsoft.IdentityModel.Logging |
| 33 | + -Source https://pkgs.dev.azure.com/dnceng/internal/_packaging/identitymodel-nightlies/nuget/v3/index.json |
| 34 | + -DependencyVersion Highest -PreRelease' |
| 35 | + - task: NuGetCommand@2 |
| 36 | + inputs: |
| 37 | + displayName: Install Microsoft.IdentityModel.Protocols.OpenIdConnect |
| 38 | + command: 'custom' |
| 39 | + arguments: 'install Microsoft.IdentityModel.Protocols.OpenIdConnect |
| 40 | + -Source https://pkgs.dev.azure.com/dnceng/internal/_packaging/identitymodel-nightlies/nuget/v3/index.json |
| 41 | + -DependencyVersion Highest -PreRelease' |
| 42 | + - task: NuGetCommand@2 |
| 43 | + inputs: |
| 44 | + displayName: Install Microsoft.IdentityModel.Protocols.WsFederation |
| 45 | + command: 'custom' |
| 46 | + arguments: 'install Microsoft.IdentityModel.Protocols.WsFederation |
| 47 | + -Source https://pkgs.dev.azure.com/dnceng/internal/_packaging/identitymodel-nightlies/nuget/v3/index.json |
| 48 | + -DependencyVersion Highest -PreRelease' |
| 49 | + - task: NuGetCommand@2 |
| 50 | + inputs: |
| 51 | + displayName: System.IdentityModel.Tokens.Jwt |
| 52 | + command: 'custom' |
| 53 | + arguments: 'install System.IdentityModel.Tokens.Jwt |
| 54 | + -Source https://pkgs.dev.azure.com/dnceng/internal/_packaging/identitymodel-nightlies/nuget/v3/index.json |
| 55 | + -DependencyVersion Highest -PreRelease' |
| 56 | + - task: PowerShell@2 |
| 57 | + displayName: Add IdentityModel feel to NuGet.config |
| 58 | + inputs: |
| 59 | + filePath: $(Build.SourcesDirectory)/eng/scripts/SetupIdentitySources.ps1 |
| 60 | + arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config |
| 61 | + # Build the shared framework |
| 62 | + - script: ./eng/build.cmd -ci -prepareMachine -nativeToolsOnMachine -nobl -all -pack -arch x64 |
| 63 | + /p:CrossgenOutput=false /p:IsIdentityModelTestJob=true /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log |
| 64 | + displayName: Build shared fx |
| 65 | + # -noBuildRepoTasks -noBuildNative -noBuild to avoid repeating work done in the previous step. |
| 66 | + - script: .\eng\build.cmd -ci -prepareMachine -nobl -all -noBuildRepoTasks -noBuildNative -noBuild -test |
| 67 | + -projects eng\helix\helix.proj /p:IsHelixJob=true |
| 68 | + /p:CrossgenOutput=false /p:IsIdentityModelTestJob=true /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log |
| 69 | + displayName: Run build.cmd helix target |
| 70 | + env: |
| 71 | + HelixApiAccessToken: $(HelixApiAccessToken) # Needed for internal queues |
| 72 | + SYSTEM_ACCESSTOKEN: $(System.AccessToken) # We need to set this env var to publish helix results to Azure Dev Ops |
| 73 | + artifacts: |
| 74 | + - name: Helix_logs |
| 75 | + path: artifacts/log/ |
| 76 | + publishOnError: true |
0 commit comments