Skip to content

Commit 428a439

Browse files
authored
Merge pull request #2414 from DataDog/ddyurchenko/disable-running-benchmarks-on-schedule
Disable benchmark runs in scheduled pipelines
2 parents 0e5f4d5 + 2c9fdf6 commit 428a439

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.gitlab/benchmarks.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ variables:
66
microbenchmarks:
77
stage: benchmarks
88
rules:
9-
- changes:
9+
- if: $CI_PIPELINE_SOURCE != "schedule"
10+
changes:
1011
paths:
1112
- profiling/**/*
1213
compare_to: "master"
@@ -43,7 +44,7 @@ microbenchmarks:
4344
download_circle_ci_release:
4445
stage: benchmarks
4546
rules:
46-
- if: $CI_COMMIT_REF_NAME == "master"
47+
- if: $CI_COMMIT_REF_NAME == "master" && $CI_PIPELINE_SOURCE != "schedule"
4748
when: always
4849
- when: manual
4950
tags: [ "arch:amd64" ]
@@ -64,7 +65,7 @@ download_circle_ci_release:
6465
.macrobenchmarks:
6566
stage: benchmarks
6667
rules:
67-
- if: $CI_COMMIT_REF_NAME == "master"
68+
- if: $CI_COMMIT_REF_NAME == "master" && $CI_PIPELINE_SOURCE != "schedule"
6869
when: always
6970
- when: manual
7071
tags: ["runner:apm-k8s-same-cpu"]

0 commit comments

Comments
 (0)