Skip to content

Commit 7694abb

Browse files
authored
Disallow benchmarks on commit tag-triggered pipelines (#11987)
Disallow benchmarks on commit tag pushes Run petclinic benchmarks on_success Co-authored-by: sarah.chen <sarah.chen@datadoghq.com>
1 parent b82b440 commit 7694abb

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

.gitlab/java-benchmark-configs.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
- if: '$POPULATE_CACHE'
44
when: never
55
- if: '$CI_COMMIT_TAG =~ /^v?[0-9]+\.[0-9]+\.[0-9]+$/'
6-
when: manual
7-
allow_failure: true
6+
when: never
87
- if: '$CI_COMMIT_BRANCH == "master"'
98
when: on_success
109
interruptible: false
@@ -23,8 +22,7 @@
2322
- if: '$POPULATE_CACHE'
2423
when: never
2524
- if: '$CI_COMMIT_TAG =~ /^v?[0-9]+\.[0-9]+\.[0-9]+$/'
26-
when: manual
27-
allow_failure: true
25+
when: never
2826
- if: '$CI_COMMIT_BRANCH == "master"'
2927
when: on_success
3028
interruptible: false
@@ -38,9 +36,18 @@
3836
interruptible: true
3937
allow_failure: true
4038

41-
# Ensure the tracer artifact publish finishes before the benchmark jobs start.
4239
linux-java-spring-petclinic-parallel:
4340
needs: ["publish-artifacts-to-s3"]
41+
rules:
42+
- if: '$CI_COMMIT_TAG =~ /^v?[0-9]+\.[0-9]+\.[0-9]+$/'
43+
when: never
44+
- if: '$CI_PIPELINE_SOURCE == "schedule"'
45+
when: on_success
46+
- if: '$CI_COMMIT_BRANCH == "master"'
47+
when: on_success
48+
interruptible: false
49+
- when: manual
50+
allow_failure: true
4451

4552
linux-java-insecure-bank-load-parallel:
4653
needs: ["publish-artifacts-to-s3"]

0 commit comments

Comments
 (0)