Skip to content

Commit

Permalink
ci: improve azure build time
Browse files Browse the repository at this point in the history
By moving the condition from the task to the entire job (PushToSWDownloads),
build time will be shorter and unnecessary tasks will not be performed.

Signed-off-by: Raluca Chis <[email protected]>
  • Loading branch information
RChis1 authored and pcercuei committed Aug 18, 2021
1 parent 36240b4 commit f109b9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ stages:
dependsOn: Builds
jobs:
- job: PushToSWDownloads
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
pool:
vmImage: 'ubuntu-latest'
steps:
Expand All @@ -175,5 +176,4 @@ stages:
- bash: chmod 600 $(key.secureFilePath) ; scp -2 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o HostKeyAlgorithms=+ssh-dss -vv -i $(key.secureFilePath) -r /home/vsts/work/1/a/* $MAPPED_VAR
env:
MAPPED_VAR: $(SERVER_ADDRESS)
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
displayName: "Push artifacts to SW Downloads"

0 comments on commit f109b9d

Please sign in to comment.