File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ variables:
3
3
# "--enable-coverage" or ""
4
4
# See .gitlab-ci-coverage.yml
5
5
SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE : " "
6
+ AUTOBUILD_SKIP_SAMBA_O3 : " 0"
6
7
7
8
include :
8
9
- /.gitlab-ci-default-runners.yml
Original file line number Diff line number Diff line change @@ -514,16 +514,24 @@ ubuntu1804-samba-o3:
514
514
AUTOBUILD_JOB_NAME : samba-o3
515
515
SAMBA_CI_JOB_IMAGE : ${SAMBA_CI_CONTAINER_IMAGE_ubuntu1804}
516
516
SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE : " --enable-coverage"
517
+ only :
518
+ variables :
519
+ # do not run o3 builds (which run a lot of VMs) if told not to
520
+ # (this uses the same variable as autobuild.py)
521
+ - $AUTOBUILD_SKIP_SAMBA_O3 == "0"
517
522
518
523
# All other jobs do not want code coverage.
519
524
.samba-o3-template :
520
525
extends : .shared_template
521
526
variables :
522
527
AUTOBUILD_JOB_NAME : samba-o3
523
- only :
524
- variables :
525
- # do not run o3 for coverage since they are using different images
526
- - $SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE == ""
528
+ rules :
529
+ # do not run o3 builds (which run a lot of VMs) if told not to
530
+ # (this uses the same variable as autobuild.py)
531
+ - if : $AUTOBUILD_SKIP_SAMBA_O3 == "1"
532
+ when : never
533
+ # do not run o3 for coverage since they are using different images
534
+ - if : $SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE == ""
527
535
528
536
ubuntu2004-samba-o3 :
529
537
extends : .samba-o3-template
You can’t perform that action at this time.
0 commit comments