Skip to content

Commit

Permalink
[MAINTENANCE] Ensure that parter-integration pipeline only runs on cr…
Browse files Browse the repository at this point in the history
…onjob
  • Loading branch information
cdkini authored Jul 13, 2022
1 parent 0857ad6 commit 28bd141
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion azure-pipelines-partner-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,26 @@ schedules:
include:
- develop

variables:
isScheduled: $[and(eq(variables['Build.SourceBranch'], 'refs/heads/develop'), eq(variables['Build.Reason'], 'Schedule'))]

stages:
- stage: scope_check
pool:
vmImage: 'ubuntu-20.04'
jobs:
- job: partner_integration_anthony_db
condition: eq(variables.isScheduled, true)
steps:
- bash: cd assets/partners/anthonydb; ../common/run-2.sh;
name: RunDockerComposeUp
env:
DB_URL: $(ANTHONY_DB_URL)
DB_PASS: $(ANTHONY_DB_PASS)
- job: partner_integration_rubenshift
condition: eq(variables.isScheduled, true)
steps:
- bash: cd assets/partners/rubenshift; ../common/run-1.sh
- bash: cd assets/partners/rubenshift; ../common/run-1.sh
name: RunDockerComposeUp
env:
DB_URL: $(REDSHIFT_URL)

0 comments on commit 28bd141

Please sign in to comment.