Skip to content

Commit 09b6851

Browse files
authored
Fix condition on source-index build steps (#195)
1 parent 07dd0cc commit 09b6851

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

azure-pipelines.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ extends:
142142
-OutFile bin/index.url
143143
144144
- task: AzureFileCopy@6
145-
displayName: Upload index to Azure Stroage
145+
displayName: Upload index to Azure Storage
146146
inputs:
147147
azureSubscription: SourceDotNet-Deployment-ARM
148148
SourcePath: "bin/index/index/*"
@@ -204,7 +204,7 @@ extends:
204204
205205
- task: AzureCLI@2
206206
displayName: Swap Staging Slot into Production
207-
condition: eq(variables['isOfficialBuild'], 'True')
207+
condition: and(succeeded(), eq(variables['isOfficialBuild'], 'True'))
208208
inputs:
209209
azureSubscription: SourceDotNet-Deployment-ARM
210210
scriptLocation: inlineScript
@@ -218,7 +218,7 @@ extends:
218218
219219
- task: AzureCLI@2
220220
displayName: Cleanup Old Storage Containers
221-
condition: eq(variables['isOfficialBuild'], 'True')
221+
condition: and(succeeded(), eq(variables['isOfficialBuild'], 'True'))
222222
inputs:
223223
azureSubscription: SourceDotNet-Deployment-ARM
224224
scriptLocation: inlineScript

0 commit comments

Comments
 (0)