Skip to content

Commit 870e3fe

Browse files
committed
Add date-based condition to Azure SQL jobs to run every 16 days
1 parent 83a837e commit 870e3fe

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

eng/pipelines/pr-validation-pipeline.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,7 +1963,7 @@ jobs:
19631963

19641964
- job: PytestOnWindows_AzureSQL
19651965
displayName: 'Windows x64 AzureSQL'
1966-
condition: eq(variables['ENABLE_AZURE_SQL'], 'true')
1966+
condition: or(eq(variables['ENABLE_AZURE_SQL'], 'true'), eq(mod(int(format('{0:dd}', pipeline.startTime)), 16), 0))
19671967
pool:
19681968
vmImage: 'windows-latest'
19691969

@@ -1999,7 +1999,7 @@ jobs:
19991999

20002000
- job: PytestOnMacOS_AzureSQL
20012001
displayName: 'macOS x86_64 AzureSQL'
2002-
condition: eq(variables['ENABLE_AZURE_SQL'], 'true')
2002+
condition: or(eq(variables['ENABLE_AZURE_SQL'], 'true'), eq(mod(int(format('{0:dd}', pipeline.startTime)), 16), 0))
20032003
pool:
20042004
vmImage: 'macos-latest'
20052005

@@ -2040,7 +2040,7 @@ jobs:
20402040

20412041
- job: PytestOnLinux_AzureSQL
20422042
displayName: 'Linux x86_64 AzureSQL'
2043-
condition: eq(variables['ENABLE_AZURE_SQL'], 'true')
2043+
condition: or(eq(variables['ENABLE_AZURE_SQL'], 'true'), eq(mod(int(format('{0:dd}', pipeline.startTime)), 16), 0))
20442044
pool:
20452045
vmImage: 'ubuntu-latest'
20462046

0 commit comments

Comments
 (0)