Skip to content

Commit e303f40

Browse files
committed
Don't clone internal when benchmark is not internal
1 parent b428fd3 commit e303f40

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

build/benchmark.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,9 @@ jobs:
195195

196196
- template: templates/setup.yml
197197
- template: templates/cloneAndBuildBenchmarkRepo.yml # Sets $(BENCH_SCRIPTS), $(TSPERF_EXE)
198-
- template: templates/cloneInternalRepo.yml # Sets $(TSPERF_INTERNAL_SCENARIO_CONFIG_DIR)
198+
- template: templates/cloneInternalRepo.yml # Sets $(TSPERF_INTERNAL_SCENARIO_CONFIG_DIR), $(TSPERF_INTERNAL_SUITE_DIR)
199+
parameters:
200+
condition: eq(variables['TSPERF_JOB_LOCATION'], 'internal')
199201

200202
- download: current
201203
artifact: BuiltTypeScript
@@ -280,7 +282,7 @@ jobs:
280282

281283
- template: templates/cloneAndBuildBenchmarkRepo.yml # Sets $(BENCH_SCRIPTS), $(TSPERF_EXE)
282284
# TODO(jakebailey): remove this; see "suite" in ts-perf/packages/api/src/options.ts
283-
- template: templates/cloneInternalRepo.yml # Sets $(TSPERF_INTERNAL_SCENARIO_CONFIG_DIR)
285+
- template: templates/cloneInternalRepo.yml # Sets $(TSPERF_INTERNAL_SCENARIO_CONFIG_DIR), $(TSPERF_INTERNAL_SUITE_DIR
284286

285287
- bash: |
286288
set -eo pipefail

build/templates/cloneInternalRepo.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
parameters:
2+
- name: condition
3+
type: string
4+
default: 'true'
5+
16
steps:
27
# The existence of this AzDo project/repository is not secret.
38
- bash: |
@@ -8,8 +13,10 @@ steps:
813
PAT: $(tslab1-mseng-PAT)
914
displayName: Clone internal repo
1015
retryCountOnTaskFailure: 3
16+
condition: and(succeeded(), ${{ parameters.condition }})
1117
1218
- bash: |
1319
echo "##vso[task.setvariable variable=TSPERF_INTERNAL_SCENARIO_CONFIG_DIR]$(Pipeline.Workspace)/internal/cases/perf/scenarios"
1420
echo "##vso[task.setvariable variable=TSPERF_INTERNAL_SUITE_DIR]$(Pipeline.Workspace)/internal/cases/perf/solutions"
1521
displayName: Set internal repo variables
22+
condition: and(succeeded(), ${{ parameters.condition }})

0 commit comments

Comments
 (0)