bootstrap: matplotlib is not a real Samba dep
[samba.git] / .gitlab-ci-main.yml
1 # see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options
2
3 # Stages explained
4 #
5 # images: Build the images with the bootstrap script
6 # build_first: Build a few things first to find silly errors (fast job)
7 #              (don't pay for 35 machines until something compiles)
8 # build: The main parallel job
9 #              (keep these to 1hour as we are billed per hour)
10 # test_only: Tests using the build from prior stages, these typically
11 #            have an explicit dependency defined to a specific build job,
12 #            which means that start as soon as the build job finished.
13 # test_private: Like test_only, but running on private runners
14 # report: Code coverage reporting
15
16 stages:
17   - images
18   - build_first
19   - build
20   - test_only
21   - test_private
22   - report
23
24 variables:
25   # We want to be resilient to runner failures
26   ARTIFACT_DOWNLOAD_ATTEMPTS: "3"
27   EXECUTOR_JOB_SECTION_ATTEMPTS: "3"
28   GET_SOURCES_ATTEMPTS: "3"
29   RESTORE_CACHE_ATTEMPTS: "3"
30   #
31   GIT_STRATEGY: fetch
32   GIT_DEPTH: "3"
33   #
34   # we run autobuild.py inside a samba CI docker image located on gitlab's registry
35   # overwrite this variable if you want use your own image registry.
36   #
37   # Or better ask for access to the shared development repository, see
38   # https://wiki.samba.org/index.php/Samba_CI_on_gitlab#Getting_Access
39   #
40   SAMBA_CI_CONTAINER_REGISTRY: registry.gitlab.com/samba-team/devel/samba
41   #
42   # Set this to the contents of bootstrap/sha1sum.txt
43   # which is generated by bootstrap/template.py --render
44   #
45   SAMBA_CI_CONTAINER_TAG: 2bfb75bf56b5b40fd57f22b7cfcfdd69d65e4f78
46   #
47   # We use the ubuntu1804 image as default as
48   # it matches what we have on sn-devel-184.
49   #
50   SAMBA_CI_CONTAINER_IMAGE: ubuntu1804
51   #
52   # The following images are available
53   # Please see the samba-o3 sections at the end of this file!
54   # We should run that for each available image
55   #
56   SAMBA_CI_CONTAINER_IMAGE_ubuntu1804: ubuntu1804
57   SAMBA_CI_CONTAINER_IMAGE_ubuntu2004: ubuntu2004
58   SAMBA_CI_CONTAINER_IMAGE_debian11: debian11
59   SAMBA_CI_CONTAINER_IMAGE_opensuse153: opensuse153
60   SAMBA_CI_CONTAINER_IMAGE_fedora35: fedora35
61   SAMBA_CI_CONTAINER_IMAGE_f35mit120: f35mit120
62   SAMBA_CI_CONTAINER_IMAGE_centos7: centos7
63   SAMBA_CI_CONTAINER_IMAGE_centos8s: centos8s
64
65 include:
66   # The image creation details are specified in a separate file
67   # See bootstrap/README.md for details
68   - 'bootstrap/.gitlab-ci.yml'
69
70 .shared_runner_build_image:
71   extends: .shared_runner_build
72   variables:
73     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE}
74   image: ${SAMBA_CI_CONTAINER_REGISTRY}/samba-ci-${SAMBA_CI_JOB_IMAGE}:${SAMBA_CI_CONTAINER_TAG}
75
76 .shared_template:
77   extends: .shared_runner_build_image
78   # All Samba jobs are interruptible, this avoids burning CPU when a
79   # newer branch is pushed.
80   interruptible: true
81   timeout: 2h
82
83   # Otherwise we run twice, once on push and once on MR
84   # https://forum.gitlab.com/t/new-rules-syntax-and-detached-pipelines/37292
85   rules:
86     - if: $CI_MERGE_REQUEST_ID
87       when: never
88     - when: on_success
89
90   variables:
91     AUTOBUILD_JOB_NAME: $CI_JOB_NAME
92   stage: build
93   cache:
94     key: ccache.${CI_JOB_NAME}.${SAMBA_CI_JOB_IMAGE}.${SAMBA_CI_FLAVOR}
95     paths:
96       - ccache
97
98   # This is overridden in many cases, but ensures none of the other
99   # main jobs start until and unless this build finishes.  However
100   # this also ensures we do not download artifacts from any build
101   # unless we specifically depend on it, saving bandwidth
102
103   needs:
104     - job: samba-def-build
105       artifacts: false
106
107   before_script:
108     - uname -a
109     - lsb_release -a
110     - cat /etc/os-release
111     - lscpu
112     - cat /proc/cpuinfo
113     - mount
114     - df -h
115     - cat /proc/swaps
116     - free -h
117       # ld will fail if coverage enabled, force link ld to ld.bfd
118     - if [ -n "$SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE" ]; then sudo ln -sf $(which ld.bfd) $(which ld); fi
119       # See bootstrap/.gitlab-ci.yml how to generate a new image
120     - echo "SAMBA_CI_CONTAINER_REGISTRY[${SAMBA_CI_CONTAINER_REGISTRY}]"
121     - echo "SAMBA_CI_CONTAINER_TAG[${SAMBA_CI_CONTAINER_TAG}]"
122     - echo "SAMBA_CI_JOB_IMAGE[${SAMBA_CI_JOB_IMAGE}]"
123     - echo "CI_JOB_IMAGE[${CI_JOB_IMAGE}]"
124     - bootstrap/template.py --sha1sum > /tmp/sha1sum-template.txt
125     - diff -u bootstrap/sha1sum.txt /tmp/sha1sum-template.txt
126     - echo "${SAMBA_CI_CONTAINER_TAG}" > /tmp/sha1sum-tag.txt
127     - diff -u bootstrap/sha1sum.txt /tmp/sha1sum-tag.txt
128     - diff -u bootstrap/sha1sum.txt /sha1sum.txt
129     - echo "${CI_COMMIT_SHA} ${CI_COMMIT_TITLE}" > /tmp/commit.txt
130     - export CCACHE_BASEDIR="${PWD}"
131     - export CCACHE_DIR="${PWD}/ccache" && mkdir -pv "$CCACHE_DIR"
132     - export CC="ccache cc"
133     - export CXX="ccache c++"
134     - ccache -z -M 500M
135     - ccache -s
136       # We are already running .gitlab-ci directives from this repo, remove additional checks that break our CI
137     - git config --global --add safe.directory `pwd`
138   after_script:
139     - mount
140     - df -h
141     - cat /proc/swaps
142     - free -h
143     - CCACHE_BASEDIR="${PWD}" CCACHE_DIR="${PWD}/ccache" ccache -s -c
144   artifacts:
145     expire_in: 1 week
146     paths:
147       - "*.stdout"
148       - "*.stderr"
149       - "*.info"
150       - public
151       - system-info.txt
152   retry:
153     max: 2
154     when:
155       - runner_system_failure
156       - stuck_or_timeout_failure
157       - api_failure
158       - runner_unsupported
159       - stale_schedule
160       - archived_failure
161       - scheduler_failure
162       - data_integrity_failure
163
164   script:
165     # gitlab predefines CI_JOB_NAME for each job. The gitlab job usually matches the
166     # autobuild name, which means we can define a default template that runs most autobuild jobs
167     - script/autobuild.py $AUTOBUILD_JOB_NAME $SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE  --verbose --nocleanup --keeplogs --tail --full-testbase /tmp/samba-testbase
168
169 # Ensure when adding a new job below that you also add it to
170 # the dependencies for 'pages' below for the code coverage page
171 # generation.
172
173 others:
174   extends: .shared_template
175   script:
176     - script/autobuild.py ldb      $SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE --verbose --nocleanup --keeplogs --tail --full-testbase /tmp/samba-testbase/ldb
177     - script/autobuild.py pidl     $SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE --verbose --nocleanup --keeplogs --tail --full-testbase /tmp/samba-testbase/pidl
178     - script/autobuild.py replace  $SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE --verbose --nocleanup --keeplogs --tail --full-testbase /tmp/samba-testbase/replace
179     - script/autobuild.py talloc   $SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE --verbose --nocleanup --keeplogs --tail --full-testbase /tmp/samba-testbase/talloc
180     - script/autobuild.py tdb      $SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE --verbose --nocleanup --keeplogs --tail --full-testbase /tmp/samba-testbase/tdb
181     - script/autobuild.py tevent   $SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE --verbose --nocleanup --keeplogs --tail --full-testbase /tmp/samba-testbase/tevent
182     - script/autobuild.py samba-xc $SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE --verbose --nocleanup --keeplogs --tail --full-testbase /tmp/samba-testbase/samba-xc
183     - script/autobuild.py docs-xml $SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE --verbose --nocleanup --keeplogs --tail --full-testbase /tmp/samba-testbase/docs-xml
184
185 .shared_template_build_only:
186   extends: .shared_template
187   timeout: 2h
188   needs:
189   artifacts:
190     expire_in: 1 week
191     paths:
192       - "*.stdout"
193       - "*.stderr"
194       - "*.info"
195       - system-info.txt
196       - samba-testbase.tar.gz
197   script:
198     # gitlab predefines CI_JOB_NAME for each job. The gitlab job usually matches the
199     # autobuild name, which means we can define a default template that runs most autobuild jobs
200     - script/autobuild.py $AUTOBUILD_JOB_NAME $SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE  --verbose --nocleanup --keeplogs --tail --full-testbase /tmp/samba-testbase
201     # On success we need to pack everything into an artifacts file
202     # which needs to be in the git checkout.
203     # As tar doesn't handle hardlink of read-only files,
204     # we remember the acls and add write permissions
205     # before creating the archive. The consumer will apply
206     # the acls again.
207     - cp -a /sha1sum.txt /tmp/samba-testbase/image-sha1sum.txt
208     - cp -a /tmp/commit.txt /tmp/samba-testbase/commit.txt
209     - ln -s /tmp/samba-testbase/${AUTOBUILD_JOB_NAME}/ /tmp/samba-testbase/build_subdir_link
210     - pushd /tmp && getfacl -R samba-testbase > samba-testbase.acl.dump && popd
211     - chmod -R +w /tmp/samba-testbase
212     - mv /tmp/samba-testbase.acl.dump /tmp/samba-testbase/
213     - tar cfz samba-testbase.tar.gz /tmp/samba-testbase
214     - ls -la samba-testbase.tar.gz
215     - sha1sum samba-testbase.tar.gz
216
217 .shared_template_test_only:
218   extends:
219     - .shared_template
220     - .shared_runner_test
221   stage: test_only
222   script:
223     # Print the Kerberos version to check we ended up with the right one
224     # in the runner. We do not have configure output to recognize it
225     # otherwise.
226     - if [ -x "$(command -v krb5-config)" ]; then krb5-config --version; fi
227     # We unpack the artifacts file created by the .shared_template_build_only
228     # run we depend on
229     - ls -la samba-testbase.tar.gz
230     - sha1sum samba-testbase.tar.gz
231     - tar xfz samba-testbase.tar.gz -C /
232     - diff -u /tmp/samba-testbase/image-sha1sum.txt /sha1sum.txt
233     - diff -u /tmp/samba-testbase/commit.txt /tmp/commit.txt
234     - mv /tmp/samba-testbase/samba-testbase.acl.dump /tmp/samba-testbase.acl.dump
235     - pushd /tmp && setfacl --restore=/tmp/samba-testbase.acl.dump && popd
236     - ls -la /tmp/samba-testbase/
237     - ls -la /tmp/samba-testbase/build_subdir_link
238     - ls -la /tmp/samba-testbase/build_subdir_link/
239     - if [ -n "$SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE" ]; then find /tmp/samba-testbase/build_subdir_link/ -type d -printf "'%p'\n" | xargs chmod u+w; fi
240     - ls -la /tmp/samba-testbase/build_subdir_link/
241     # gitlab predefines CI_JOB_NAME for each job. The gitlab job usually matches the
242     # autobuild name, which means we can define a default template that runs most autobuild jobs
243     - script/autobuild.py $AUTOBUILD_JOB_NAME $SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE --skip-dependencies --verbose --nocleanup --keeplogs --tail --full-testbase /tmp/samba-testbase
244
245 samba-def-build:
246   extends: .shared_template_build_only
247   stage: build_first
248
249 .needs_samba-def-build:
250   extends: .shared_template_test_only
251   needs:
252     - job: samba-def-build
253       artifacts: true
254
255 samba-mit-build:
256   extends: .shared_template_build_only
257   variables:
258     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_fedora35}
259   stage: build_first
260
261 samba-mit120-build:
262   extends: .shared_template_build_only
263   variables:
264     AUTOBUILD_JOB_NAME: samba-mit-build
265     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_f35mit120}
266   stage: build_first
267
268 .needs_samba-mit-build:
269   extends: .shared_template_test_only
270   variables:
271     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_fedora35}
272   needs:
273     - job: samba-mit-build
274       artifacts: true
275
276 .needs_samba-mit120-build:
277   extends: .shared_template_test_only
278   variables:
279     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_f35mit120}
280   needs:
281     - job: samba-mit120-build
282       artifacts: true
283
284 samba-h5l-build:
285   extends: .shared_template_build_only
286
287 .needs_samba-h5l-build:
288   extends: .shared_template_test_only
289   needs:
290     - job: samba-h5l-build
291       artifacts: true
292
293 samba-without-smb1-build:
294   extends: .shared_template_build_only
295
296 .needs_samba-without-smb1-build:
297   extends: .shared_template_test_only
298   needs:
299     - job: samba-without-smb1-build
300       artifacts: true
301
302 samba-nt4-build:
303   extends: .shared_template_build_only
304
305 .needs_samba-nt4-build:
306   extends: .shared_template_test_only
307   needs:
308     - job: samba-nt4-build
309       artifacts: true
310
311 samba-no-opath-build:
312   extends: .shared_template_build_only
313
314 .needs_samba-no-opath-build:
315   extends: .shared_template_test_only
316   needs:
317     - job: samba-no-opath-build
318       artifacts: true
319
320 samba:
321   extends: .shared_template
322
323 samba-mitkrb5:
324   extends: .shared_template
325   variables:
326     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_fedora35}
327
328 samba-minimal-smbd:
329   extends: .shared_template
330
331 samba-nopython:
332   extends: .shared_template
333
334 samba-admem:
335   extends: .needs_samba-def-build
336
337 samba-ad-dc-2:
338   extends: .needs_samba-def-build
339
340 samba-ad-dc-3:
341   extends: .needs_samba-def-build
342
343 samba-ad-dc-4a:
344   extends: .needs_samba-def-build
345
346 samba-ad-dc-4b:
347   extends: .needs_samba-def-build
348
349 samba-ad-dc-5:
350   extends: .needs_samba-def-build
351
352 samba-ad-dc-6:
353   extends: .needs_samba-def-build
354
355 samba-ad-back1:
356   extends: .needs_samba-def-build
357
358 samba-ad-back2:
359   extends: .needs_samba-def-build
360
361 samba-schemaupgrade:
362   extends: .needs_samba-def-build
363
364 samba-libs:
365   extends: .shared_template
366
367 samba-fuzz:
368   extends: .shared_template
369   variables:
370     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_ubuntu2004}
371
372 ctdb:
373   extends: .shared_template
374
375 samba-ctdb:
376   extends: .shared_template
377
378 samba-ad-dc-ntvfs:
379   extends: .needs_samba-def-build
380
381 samba-admem-mit:
382   extends: .needs_samba-mit-build
383
384 samba-addc-mit-4a:
385   extends: .needs_samba-mit-build
386
387 samba-addc-mit-4b:
388   extends: .needs_samba-mit-build
389
390 # This task is run first to ensure we compile before we start the
391 # main run as it is the fastest full compile of Samba.
392 samba-fips:
393   extends: .shared_template
394   variables:
395     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_fedora35}
396
397 .private_test_only:
398   extends: .private_runner_test
399   stage: test_private
400   rules:
401       # See above, to avoid a duplicate CI on the MR (these rules override the others)
402     - if: $CI_MERGE_REQUEST_ID
403       when: never
404
405       # These jobs are only run if the gitlab repo has private runners available.
406       # To enable private jobs, you must add the following var and value to
407       # your gitlab repo by navigating to:
408       # settings -> CI/CD -> Environment variables
409     - if: $SUPPORT_PRIVATE_TEST == "yes"
410
411 .needs_samba-def-build-private:
412   extends:
413     - .needs_samba-def-build
414     - .private_test_only
415
416 .needs_samba-mit-build-private:
417   extends:
418     - .needs_samba-mit-build
419     - .private_test_only
420
421 .needs_samba-mit120-build-private:
422   extends:
423     - .needs_samba-mit120-build
424     - .private_test_only
425
426 .needs_samba-h5l-build-private:
427   extends:
428     - .needs_samba-h5l-build
429     - .private_test_only
430
431 .needs_samba-without-smb1-build-private:
432   extends:
433     - .needs_samba-without-smb1-build
434     - .private_test_only
435
436 .needs_samba-nt4-build-private:
437   extends:
438     - .needs_samba-nt4-build
439     - .private_test_only
440
441 .needs_samba-no-opath-build-private:
442   extends:
443     - .needs_samba-no-opath-build
444     - .private_test_only
445
446 samba-fileserver:
447   extends: .needs_samba-h5l-build-private
448
449 samba-fileserver-without-smb1:
450   extends: .needs_samba-without-smb1-build-private
451
452 # This is a full build without the AD DC so we test the build with MIT
453 # Kerberos from the default system (Ubuntu 18.04 at this stage).
454 # Runtime behaviour checked via the ktest (static ccache and keytab)
455 # environment
456 samba-ktest-mit:
457  extends: .shared_template
458
459 samba-ad-dc-1:
460   extends: .needs_samba-def-build-private
461
462 samba-nt4:
463   extends: .needs_samba-nt4-build-private
464
465 samba-addc-mit-1:
466   extends: .needs_samba-mit-build-private
467
468 samba-addc-mit120:
469   extends: .needs_samba-mit120-build-private
470   variables:
471     AUTOBUILD_JOB_NAME: samba-addc-mit-1
472
473 samba-no-opath1:
474   extends: .needs_samba-no-opath-build-private
475
476 samba-no-opath2:
477   extends: .needs_samba-no-opath-build-private
478
479 # 'pages' is a special job which can publish artifacts in `public` dir to gitlab pages
480 pages:
481   extends: .shared_runner_build_image
482   stage: report
483   dependencies:  # tell gitlab to download artifacts for these jobs
484     - others
485     - samba
486     - samba-mitkrb5
487     - samba-admem
488     - samba-ad-dc-2
489     - samba-ad-dc-3
490     - samba-ad-dc-4a
491     - samba-ad-dc-4b
492     - samba-ad-dc-5
493     - samba-ad-dc-6
494     - samba-libs
495     - samba-minimal-smbd
496     - samba-nopython
497     - samba-fuzz
498     # - ctdb  # TODO
499     - samba-ctdb
500     - samba-ad-dc-ntvfs
501     - samba-admem-mit
502     - samba-addc-mit-4a
503     - samba-addc-mit-4b
504     - samba-ad-back1
505     - samba-ad-back2
506     - samba-fileserver
507     - samba-fileserver-without-smb1
508     - samba-ad-dc-1
509     - samba-nt4
510     - samba-schemaupgrade
511     - samba-addc-mit-1
512     - samba-fips
513     - samba-no-opath1
514     - samba-no-opath2
515     - ubuntu1804-samba-o3
516   script:
517     - ls -la *.info
518     - ./configure.developer
519     - make -j
520     - ls -la *.info
521     - lcov $(ls *.info | xargs -I{} echo -n "-a {} ") -o all.info
522     - ls -la *.info
523     - genhtml all.info --ignore-errors source --output-directory public --prefix=$(pwd) --title "coverage report for $CI_COMMIT_REF_NAME $CI_COMMIT_SHORT_SHA"
524   artifacts:
525     expire_in: 30 days
526     paths:
527       - public
528   only:
529     variables:
530       - $SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE == "--enable-coverage"
531
532 # Coverity Scan
533 coverity:
534   extends: .shared_runner_build_image
535   variables:
536     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_ubuntu2004}
537   stage: build
538   script:
539     - wget https://scan.coverity.com/download/linux64 --post-data "token=$COVERITY_SCAN_TOKEN&project=$COVERITY_SCAN_PROJECT_NAME" -O /tmp/coverity_tool.tgz
540     - tar xf /tmp/coverity_tool.tgz
541     - ./configure.developer --with-cluster-support --with-system-mitkrb5 --with-experimental-mit-ad-dc
542     - cov-analysis-linux64-*/bin/cov-build --dir cov-int make -j$(nproc)
543     - tar czf cov-int.tar.gz cov-int
544     - curl
545       --form token=$COVERITY_SCAN_TOKEN
546       --form email=$COVERITY_SCAN_EMAIL
547       --form file=@cov-int.tar.gz
548       --form version="`git describe --tags`"
549       --form description="CI build"
550       https://scan.coverity.com/builds?project=$COVERITY_SCAN_PROJECT_NAME
551   only:
552     refs:
553       - master
554       - schedules
555     variables:
556       - $COVERITY_SCAN_TOKEN != null
557       - $COVERITY_SCAN_PROJECT_NAME != null
558       - $COVERITY_SCAN_EMAIL != null
559   artifacts:
560     expire_in: 1 week
561     when: on_failure
562     paths:
563       - cov-int/*.txt
564
565 #
566 # We build samba-o3 on all supported distributions
567 #
568
569 # This job, which matches the main CI, needs to still do coverage so
570 # we show the coverage on the "none" environment tests
571 #
572 # We want --enable-coverage specified here otherwise we will have a
573 # different set of build options on the coverage build and can fail
574 # when -O3 gets combined with --enable-coverage in the scheduled
575 # builds.
576
577 ubuntu1804-samba-o3:
578   extends: .shared_template
579   variables:
580     AUTOBUILD_JOB_NAME: samba-o3
581     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_ubuntu1804}
582     SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE: "--enable-coverage"
583   rules:
584     # See above, to avoid a duplicate CI on the MR (these rules override the others)
585     - if: $CI_MERGE_REQUEST_ID
586       when: never
587     # do not run o3 builds (which run a lot of VMs) if told not to
588     # (this uses the same variable as autobuild.py)
589     - if: $AUTOBUILD_SKIP_SAMBA_O3 == "1"
590       when: never
591
592 # All other jobs do not want code coverage.
593 .samba-o3-template:
594   extends: .shared_template
595   variables:
596     AUTOBUILD_JOB_NAME: samba-o3
597   rules:
598     # See above, to avoid a duplicate CI on the MR (these rules override the others)
599     - if: $CI_MERGE_REQUEST_ID
600       when: never
601     # do not run o3 builds (which run a lot of VMs) if told not to
602     # (this uses the same variable as autobuild.py)
603     - if: $AUTOBUILD_SKIP_SAMBA_O3 == "1"
604       when: never
605     # do not run o3 for coverage since they are using different images
606     - if: $SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE == ""
607
608 ubuntu2004-samba-o3:
609   extends: .samba-o3-template
610   variables:
611     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_ubuntu2004}
612
613 debian11-samba-o3:
614   extends: .samba-o3-template
615   variables:
616     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_debian11}
617
618 opensuse153-samba-o3:
619   extends: .samba-o3-template
620   variables:
621     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_opensuse153}
622
623 centos7-samba-o3:
624   extends: .samba-o3-template
625   variables:
626     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_centos7}
627     # Git on CentOS doesn't support shallow git cloning
628     GIT_DEPTH: ""
629     # We need a newer GnuTLS version on CentOS7
630     PKG_CONFIG_PATH: "/usr/lib64/compat-gnutls37/pkgconfig:/usr/lib64/compat-nettle32/pkgconfig"
631
632 centos8s-samba-o3:
633   extends: .samba-o3-template
634   variables:
635     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_centos8s}
636
637 fedora35-samba-o3:
638   extends: .samba-o3-template
639   variables:
640     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_fedora35}
641
642 #
643 # Keep the samba-o3 sections at the end ...
644 #