File tree Expand file tree Collapse file tree
eng/pipelines/templates/stages
tools/notification-configuration Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,6 +56,9 @@ parameters:
5656 Pool : $(MACPOOL)
5757 Image : $(MACVMIMAGE)
5858 Os : macOS
59+ - name : TestAzureSubscription # Azure service connection to use for running tests
60+ type : string
61+ default : ' Azure SDK Engineering System'
5962
6063extends :
6164 template : /eng/pipelines/templates/stages/1es-redirect.yml
@@ -169,13 +172,18 @@ extends:
169172
170173 - ${{ parameters.TestPreSteps }}
171174
172- - script : ' dotnet test /p:ArtifactsPackagesDir=$(Build.ArtifactStagingDirectory) $(Warn) --logger trx '
175+ - task : AzureCLI@2
173176 displayName : ' Test'
174- workingDirectory : ' ${{ coalesce(parameters.TestDirectory, parameters.ToolDirectory) }}'
175- env :
176- DOTNET_SKIP_FIRST_TIME_EXPERIENCE : 1
177- DOTNET_CLI_TELEMETRY_OPTOUT : 1
178- DOTNET_MULTILEVEL_LOOKUP : 0
177+ inputs :
178+ azureSubscription : ${{ parameters.TestAzureSubscription }}
179+ scriptType : ' pscore'
180+ scriptLocation : ' inlineScript'
181+ inlineScript : |
182+ $env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = '1'
183+ $env:DOTNET_CLI_TELEMETRY_OPTOUT = '1'
184+ $env:DOTNET_MULTILEVEL_LOOKUP = '0'
185+ dotnet test /p:ArtifactsPackagesDir=$(Build.ArtifactStagingDirectory) $(Warn) --logger trx
186+ workingDirectory : ' ${{ coalesce(parameters.TestDirectory, parameters.ToolDirectory) }}'
179187
180188 - ${{ parameters.TestPostSteps }}
181189
Original file line number Diff line number Diff line change @@ -29,3 +29,4 @@ extends:
2929 template : /eng/pipelines/templates/stages/archetype-sdk-tool-dotnet.yml
3030 parameters :
3131 ToolDirectory : tools/notification-configuration
32+ TestAzureSubscription : ' opensource-api-connection'
You can’t perform that action at this time.
0 commit comments