File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 85
85
targetType : filePath
86
86
filePath : ./tools/TestFx/Live/InvokeLiveTestCITask.ps1
87
87
arguments : -UseWindowsPowerShell ('${{ parameters.psVersion }}' -eq '5.1') -ScriptFile './tools/TestFx/Live/ConnectLiveTestServicePrincipal.ps1 $(LiveTestServicePrincipalSubscriptionId) $(LiveTestServicePrincipalTenantId) $(LiveTestServicePrincipalId) $(LiveTestServicePrincipalSecret)'
88
+ failOnStderr : true
89
+ retryCountOnTaskFailure : 3
88
90
89
91
- task : PowerShell@2
90
92
displayName : Run top E2E live scenarios
@@ -97,12 +99,13 @@ jobs:
97
99
- task : PowerShell@2
98
100
displayName : Save live test results to Kusto
99
101
condition : succeededOrFailed()
100
- retryCountOnTaskFailure : 3
101
102
inputs :
102
103
pwsh : true
103
104
targetType : filePath
104
105
filePath : ./tools/TestFx/Live/SaveLiveTestResult.ps1
105
106
arguments : $(KustoServicePrincipalTenantId) $(KustoServicePrincipalId) $(KustoServicePrincipalSecret) $(KustoClusterName) $(KustoClusterRegion) $(LiveTestDatabaseName) $(LiveTestTableName) $(TestCoverageTableName) $(DataLocation)
107
+ failOnStderr : true
108
+ retryCountOnTaskFailure : 3
106
109
107
110
- task : PublishPipelineArtifact@1
108
111
displayName : Publish live test results to pipeline artifact
Original file line number Diff line number Diff line change @@ -16,6 +16,11 @@ param (
16
16
[string ] $ServicePrincipalSecret
17
17
)
18
18
19
+ $PreErrorActionPreference = $ErrorActionPreference
20
+ $ErrorActionPreference = " Stop"
21
+
19
22
$servicePrincipalSecureSecret = ConvertTo-SecureString - String $ServicePrincipalSecret - AsPlainText - Force
20
23
$servicePrincipalCredential = New-Object - TypeName System.Management.Automation.PSCredential - ArgumentList $ServicePrincipalId , $servicePrincipalSecureSecret
21
24
Connect-AzAccount - SubscriptionId $SubscriptionId - TenantId $TenantId - Credential $servicePrincipalCredential - ServicePrincipal
25
+
26
+ $ErrorActionPreference = $PreErrorActionPreference
You can’t perform that action at this time.
0 commit comments