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