]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Create "other_checks_job" anchor in CI yaml
authorAndoni Duarte Pintado <andoni@isc.org>
Mon, 15 Dec 2025 13:47:08 +0000 (14:47 +0100)
committerMichał Kępień <michal@isc.org>
Fri, 23 Jan 2026 11:50:50 +0000 (12:50 +0100)
Use an anchor for the common parts of "other-checks" jobs in CI yaml.

(cherry picked from commit e61bc3ad72d65b57ae2a96c25c944a04fa447454)

.gitlab-ci.yml

index a532df6f02ce2564053ea51d2a11eb96f22563df..c980a82a78c750042dfcfc8c2a4a1dbe0481e2ed 100644 (file)
@@ -364,6 +364,12 @@ stages:
   tags:
     - smalljob
 
+.other-check: &other_checks_job
+  <<: *default_triggering_rules
+  <<: *base_image
+  stage: other-checks
+  needs: []
+
 .autoconf: &autoconf_job
   <<: *default_triggering_rules
   <<: *base_image
@@ -1326,9 +1332,7 @@ gcc:trixie:amd64cross32:
                   -o scan-build.reports make -j${BUILD_PARALLEL_JOBS:-1} all V=1
 
 scan-build:
-  <<: *default_triggering_rules
-  <<: *base_image
-  stage: other-checks
+  <<: *other_checks_job
   variables:
     CC: "${CLANG}"
     CFLAGS: "${CFLAGS_COMMON}"
@@ -2138,8 +2142,7 @@ customer-git:tag:
   - grep -q 'Build successfully submitted' curl-response.txt
 
 coverity:
-  <<: *base_image
-  stage: other-checks
+  <<: *other_checks_job
   variables:
     CC: gcc
     CFLAGS: "${CFLAGS_COMMON} -Og"
@@ -2311,8 +2314,7 @@ stress-test-child-pipeline:
 # only in one branch, preferably "main". GitLab's clone strategy prevents us
 # from using the "bind9" repo clone; we need to clone it ourselves.
 fsck:
-  <<: *base_image
-  stage: other-checks
+  <<: *other_checks_job
   variables:
     GIT_STRATEGY: none
   script:
@@ -2324,9 +2326,7 @@ fsck:
   needs: []
 
 gcov:
-  <<: *base_image
-  <<: *default_triggering_rules
-  stage: other-checks
+  <<: *other_checks_job
   needs:
     - job: system:gcc:trixie:amd64
       artifacts: true