s3:rpc_client: implement bind time feature negotiation
[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: 791e89a43f2b287635e128c8f5aed924b757c4bd
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_ubuntu1604: ubuntu1604
57   SAMBA_CI_CONTAINER_IMAGE_ubuntu1804: ubuntu1804
58   SAMBA_CI_CONTAINER_IMAGE_ubuntu2004: ubuntu2004
59   SAMBA_CI_CONTAINER_IMAGE_debian9: debian9
60   SAMBA_CI_CONTAINER_IMAGE_debian10: debian10
61   SAMBA_CI_CONTAINER_IMAGE_debian11: debian11
62   SAMBA_CI_CONTAINER_IMAGE_opensuse151: opensuse151
63   SAMBA_CI_CONTAINER_IMAGE_opensuse152: opensuse152
64   SAMBA_CI_CONTAINER_IMAGE_fedora34: fedora34
65   SAMBA_CI_CONTAINER_IMAGE_fedora35: fedora35
66   SAMBA_CI_CONTAINER_IMAGE_centos7: centos7
67   SAMBA_CI_CONTAINER_IMAGE_centos8: centos8
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     # We unpack the artifacts file created by the .shared_template_build_only
226     # run we depend on
227     - ls -la samba-testbase.tar.gz
228     - sha1sum samba-testbase.tar.gz
229     - tar xfz samba-testbase.tar.gz -C /
230     - diff -u /tmp/samba-testbase/image-sha1sum.txt /sha1sum.txt
231     - diff -u /tmp/samba-testbase/commit.txt /tmp/commit.txt
232     - mv /tmp/samba-testbase/samba-testbase.acl.dump /tmp/samba-testbase.acl.dump
233     - pushd /tmp && setfacl --restore=/tmp/samba-testbase.acl.dump && popd
234     - ls -la /tmp/samba-testbase/
235     - ls -la /tmp/samba-testbase/build_subdir_link
236     - ls -la /tmp/samba-testbase/build_subdir_link/
237     - 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
238     - ls -la /tmp/samba-testbase/build_subdir_link/
239     # gitlab predefines CI_JOB_NAME for each job. The gitlab job usually matches the
240     # autobuild name, which means we can define a default template that runs most autobuild jobs
241     - script/autobuild.py $AUTOBUILD_JOB_NAME $SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE --skip-dependencies --verbose --nocleanup --keeplogs --tail --full-testbase /tmp/samba-testbase
242
243 samba-def-build:
244   extends: .shared_template_build_only
245   stage: build_first
246
247 .needs_samba-def-build:
248   extends: .shared_template_test_only
249   needs:
250     - job: samba-def-build
251       artifacts: true
252
253 samba-mit-build:
254   extends: .shared_template_build_only
255   variables:
256     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_fedora35}
257   stage: build_first
258
259 .needs_samba-mit-build:
260   extends: .shared_template_test_only
261   variables:
262     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_fedora35}
263   needs:
264     - job: samba-mit-build
265       artifacts: true
266
267 samba-h5l-build:
268   extends: .shared_template_build_only
269
270 .needs_samba-h5l-build:
271   extends: .shared_template_test_only
272   needs:
273     - job: samba-h5l-build
274       artifacts: true
275
276 samba-nt4-build:
277   extends: .shared_template_build_only
278
279 .needs_samba-nt4-build:
280   extends: .shared_template_test_only
281   needs:
282     - job: samba-nt4-build
283       artifacts: true
284
285 samba-no-opath-build:
286   extends: .shared_template_build_only
287
288 .needs_samba-no-opath-build:
289   extends: .shared_template_test_only
290   needs:
291     - job: samba-no-opath-build
292       artifacts: true
293
294 samba:
295   extends: .shared_template
296
297 samba-mitkrb5:
298   extends: .shared_template
299   variables:
300     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_fedora35}
301
302 samba-minimal-smbd:
303   extends: .shared_template
304
305 samba-nopython:
306   extends: .shared_template
307
308 samba-admem:
309   extends: .needs_samba-def-build
310
311 samba-ad-dc-2:
312   extends: .needs_samba-def-build
313
314 samba-ad-dc-3:
315   extends: .needs_samba-def-build
316
317 samba-ad-dc-4a:
318   extends: .needs_samba-def-build
319
320 samba-ad-dc-4b:
321   extends: .needs_samba-def-build
322
323 samba-ad-dc-5:
324   extends: .needs_samba-def-build
325
326 samba-ad-dc-6:
327   extends: .needs_samba-def-build
328
329 samba-ad-back1:
330   extends: .needs_samba-def-build
331
332 samba-ad-back2:
333   extends: .needs_samba-def-build
334
335 samba-schemaupgrade:
336   extends: .needs_samba-def-build
337
338 samba-libs:
339   extends: .shared_template
340
341 samba-fuzz:
342   extends: .shared_template
343   variables:
344     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_ubuntu2004}
345
346 ctdb:
347   extends: .shared_template
348
349 samba-ctdb:
350   extends: .shared_template
351
352 samba-ad-dc-ntvfs:
353   extends: .needs_samba-def-build
354
355 samba-admem-mit:
356   extends: .needs_samba-mit-build
357
358 samba-addc-mit-4a:
359   extends: .needs_samba-mit-build
360
361 samba-addc-mit-4b:
362   extends: .needs_samba-mit-build
363
364 # This task is run first to ensure we compile before we start the
365 # main run as it is the fastest full compile of Samba.
366 samba-fips:
367   extends: .shared_template
368   variables:
369     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_fedora35}
370
371 .private_test_only:
372   extends: .private_runner_test
373   stage: test_private
374   rules:
375       # See above, to avoid a duplicate CI on the MR (these rules override the others)
376     - if: $CI_MERGE_REQUEST_ID
377       when: never
378
379       # These jobs are only run if the gitlab repo has private runners available.
380       # To enable private jobs, you must add the following var and value to
381       # your gitlab repo by navigating to:
382       # settings -> CI/CD -> Environment variables
383     - if: $SUPPORT_PRIVATE_TEST == "yes"
384
385 .needs_samba-def-build-private:
386   extends:
387     - .needs_samba-def-build
388     - .private_test_only
389
390 .needs_samba-mit-build-private:
391   extends:
392     - .needs_samba-mit-build
393     - .private_test_only
394
395 .needs_samba-h5l-build-private:
396   extends:
397     - .needs_samba-h5l-build
398     - .private_test_only
399
400 .needs_samba-nt4-build-private:
401   extends:
402     - .needs_samba-nt4-build
403     - .private_test_only
404
405 .needs_samba-no-opath-build-private:
406   extends:
407     - .needs_samba-no-opath-build
408     - .private_test_only
409
410 samba-fileserver:
411   extends: .needs_samba-h5l-build-private
412
413 # This is a full build without the AD DC so we test the build with MIT
414 # Kerberos from the default system (Ubuntu 18.04 at this stage).
415 # Runtime behaviour checked via the ktest (static ccache and keytab)
416 # environment
417 samba-ktest-mit:
418  extends: .shared_template
419
420 samba-ad-dc-1:
421   extends: .needs_samba-def-build-private
422
423 samba-nt4:
424   extends: .needs_samba-nt4-build-private
425
426 samba-addc-mit-1:
427   extends: .needs_samba-mit-build-private
428
429 samba-no-opath1:
430   extends: .needs_samba-no-opath-build-private
431
432 samba-no-opath2:
433   extends: .needs_samba-no-opath-build-private
434
435 # 'pages' is a special job which can publish artifacts in `public` dir to gitlab pages
436 pages:
437   extends: .shared_runner_build_image
438   stage: report
439   dependencies:  # tell gitlab to download artifacts for these jobs
440     - others
441     - samba
442     - samba-mitkrb5
443     - samba-admem
444     - samba-ad-dc-2
445     - samba-ad-dc-3
446     - samba-ad-dc-4a
447     - samba-ad-dc-4b
448     - samba-ad-dc-5
449     - samba-ad-dc-6
450     - samba-libs
451     - samba-minimal-smbd
452     - samba-nopython
453     - samba-fuzz
454     # - ctdb  # TODO
455     - samba-ctdb
456     - samba-ad-dc-ntvfs
457     - samba-admem-mit
458     - samba-addc-mit-4a
459     - samba-addc-mit-4b
460     - samba-ad-back1
461     - samba-ad-back2
462     - samba-fileserver
463     - samba-ad-dc-1
464     - samba-nt4
465     - samba-schemaupgrade
466     - samba-addc-mit-1
467     - samba-fips
468     - samba-no-opath1
469     - samba-no-opath2
470     - ubuntu1804-samba-o3
471   script:
472     - ls -la *.info
473     - ./configure.developer
474     - make -j
475     - ls -la *.info
476     - lcov $(ls *.info | xargs -I{} echo -n "-a {} ") -o all.info
477     - ls -la *.info
478     - genhtml all.info --ignore-errors source --output-directory public --prefix=$(pwd) --title "coverage report for $CI_COMMIT_REF_NAME $CI_COMMIT_SHORT_SHA"
479   artifacts:
480     expire_in: 30 days
481     paths:
482       - public
483   only:
484     variables:
485       - $SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE == "--enable-coverage"
486
487 # Coverity Scan
488 coverity:
489   extends: .shared_runner_build_image
490   variables:
491     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_fedora35}
492   stage: build
493   script:
494     - wget https://scan.coverity.com/download/linux64 --post-data "token=$COVERITY_SCAN_TOKEN&project=$COVERITY_SCAN_PROJECT_NAME" -O /tmp/coverity_tool.tgz
495     - tar xf /tmp/coverity_tool.tgz
496     - ./configure.developer --with-cluster-support --with-system-mitkrb5 --with-experimental-mit-ad-dc
497     - cov-analysis-linux64-*/bin/cov-build --dir cov-int make -j$(nproc)
498     - tar czf cov-int.tar.gz cov-int
499     - curl
500       --form token=$COVERITY_SCAN_TOKEN
501       --form email=$COVERITY_SCAN_EMAIL
502       --form file=@cov-int.tar.gz
503       --form version="`git describe --tags`"
504       --form description="CI build"
505       https://scan.coverity.com/builds?project=$COVERITY_SCAN_PROJECT_NAME
506   only:
507     refs:
508       - master
509       - schedules
510     variables:
511       - $COVERITY_SCAN_TOKEN != null
512       - $COVERITY_SCAN_PROJECT_NAME != null
513       - $COVERITY_SCAN_EMAIL != null
514   artifacts:
515     expire_in: 1 week
516     when: on_failure
517     paths:
518       - cov-int/*.txt
519
520 #
521 # We build samba-o3 on all supported distributions
522 #
523
524 # This job, which matches the main CI, needs to still do coverage so
525 # we show the coverage on the "none" environment tests
526 #
527 # We want --enable-coverage specified here otherwise we will have a
528 # different set of build options on the coverage build and can fail
529 # when -O3 gets combined with --enable-coverage in the scheduled
530 # builds.
531
532 ubuntu1804-samba-o3:
533   extends: .shared_template
534   variables:
535     AUTOBUILD_JOB_NAME: samba-o3
536     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_ubuntu1804}
537     SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE: "--enable-coverage"
538   rules:
539     # See above, to avoid a duplicate CI on the MR (these rules override the others)
540     - if: $CI_MERGE_REQUEST_ID
541       when: never
542     # do not run o3 builds (which run a lot of VMs) if told not to
543     # (this uses the same variable as autobuild.py)
544     - if: $AUTOBUILD_SKIP_SAMBA_O3 == "1"
545       when: never
546
547 # All other jobs do not want code coverage.
548 .samba-o3-template:
549   extends: .shared_template
550   variables:
551     AUTOBUILD_JOB_NAME: samba-o3
552   rules:
553     # See above, to avoid a duplicate CI on the MR (these rules override the others)
554     - if: $CI_MERGE_REQUEST_ID
555       when: never
556     # do not run o3 builds (which run a lot of VMs) if told not to
557     # (this uses the same variable as autobuild.py)
558     - if: $AUTOBUILD_SKIP_SAMBA_O3 == "1"
559       when: never
560     # do not run o3 for coverage since they are using different images
561     - if: $SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE == ""
562
563 ubuntu2004-samba-o3:
564   extends: .samba-o3-template
565   variables:
566     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_ubuntu2004}
567
568 debian10-samba-o3:
569   extends: .samba-o3-template
570   variables:
571     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_debian10}
572
573 debian11-samba-o3:
574   extends: .samba-o3-template
575   variables:
576     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_debian11}
577
578 opensuse151-samba-o3:
579   extends: .samba-o3-template
580   variables:
581     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_opensuse151}
582
583 opensuse152-samba-o3:
584   extends: .samba-o3-template
585   variables:
586     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_opensuse152}
587
588 centos7-samba-o3:
589   extends: .samba-o3-template
590   variables:
591     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_centos7}
592     # Git on CentOS doesn't support shallow git cloning
593     GIT_DEPTH: ""
594     # We need a newer GnuTLS version on CentOS7
595     PKG_CONFIG_PATH: "/usr/lib64/compat-gnutls34/pkgconfig:/usr/lib64/compat-nettle32/pkgconfig"
596
597 centos8-samba-o3:
598   extends: .samba-o3-template
599   variables:
600     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_centos8}
601
602 fedora34-samba-o3:
603   extends: .samba-o3-template
604   variables:
605     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_fedora34}
606
607 fedora35-samba-o3:
608   extends: .samba-o3-template
609   variables:
610     SAMBA_CI_JOB_IMAGE: ${SAMBA_CI_CONTAINER_IMAGE_fedora35}
611
612 #
613 # Keep the samba-o3 sections at the end ...
614 #