Skip to content

Commit ce722e2

Browse files
authored
Set Build Env variables to skip MSI E2E tests if needed (#5285)
Update template-build-and-run-all-tests.yaml
1 parent a077399 commit ce722e2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build/template-build-and-run-all-tests.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,11 @@ jobs: #Build and stage projects
9696
- template: template-test-on-linux.yaml
9797

9898
- job: 'RunManagedIdentityE2ETestsOnAzureArc'
99-
displayName: 'Managed Identity E2E Tests – Azure ARC Agent'
99+
displayName: 'Managed Identity E2E Tests – Azure ARC Agent'
100100
dependsOn: ['BuildAndStageProjects']
101101
pool:
102102
name: 'MSALMSIAZUREARC'
103+
condition: and(succeeded(), eq(variables['RunManagedIdentityE2EArcTests'], 'true'))
103104

104105
steps:
105106
- template: template-run-mi-e2e-azurearc.yaml
@@ -108,10 +109,11 @@ jobs: #Build and stage projects
108109
TargetFramework: 'net8.0'
109110

110111
- job: 'RunManagedIdentityE2ETestsOnImds'
111-
displayName: 'Managed Identity E2E Tests – VM / IMDS'
112+
displayName: 'Managed Identity E2E Tests – VM / IMDS'
112113
dependsOn: ['BuildAndStageProjects']
113114
pool:
114115
name: 'ID4SMSIHostedAgent'
116+
condition: and(succeeded(), eq(variables['RunManagedIdentityE2EVmTests'], 'true'))
115117

116118
steps:
117119
- template: template-run-mi-e2e-imds.yaml

0 commit comments

Comments
 (0)