Skip to content

Commit 6ce82f6

Browse files
committed
make benchmarking jobs interruptible outside main and release branches
1 parent 39de9cb commit 6ce82f6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.gitlab/benchmarks.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ build-nginx-module:
1919
stage: build
2020
tags: ["arch:amd64"]
2121
timeout: 20min
22+
rules:
23+
- if: $CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_REF_NAME =~ /^release\/v/
24+
interruptible: false
25+
- interruptible: true
2226
image: $BUILD_IMAGE
2327
variables:
2428
WAF: OFF
@@ -43,6 +47,10 @@ build-nginx-module:
4347
needs: ["build-nginx-module"]
4448
tags: ["runner:apm-k8s-same-cpu"]
4549
timeout: 1h
50+
rules:
51+
- if: $CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_REF_NAME =~ /^release\/v/
52+
interruptible: false
53+
- interruptible: true
4654
image: $MACROBENCHMARKS_CI_IMAGE
4755
script:
4856
- cp .musl-build/ngx_http_datadog_module.so /usr/lib/nginx/modules/ngx_http_datadog_module.so

0 commit comments

Comments
 (0)