forked from DataDog/datadog-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
723 lines (640 loc) · 20 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
---
include:
- /.gitlab/maintenance_jobs.yml
- /.gitlab/deps_build.yml
- /.gitlab/deps_fetch.yml
- /.gitlab/source_test.yml
- /.gitlab/source_test_junit_upload.yml
- /.gitlab/binary_build.yml
- /.gitlab/integration_test.yml
- /.gitlab/package_build.yml
- /.gitlab/internal_deploy.yml
- /.gitlab/kitchen_deploy.yml
- /.gitlab/kitchen_testing.yml
- /.gitlab/pkg_metrics.yml
- /.gitlab/container_build.yml
- /.gitlab/container_scan.yml
- /.gitlab/check_deploy.yml
- /.gitlab/dev_container_deploy.yml
- /.gitlab/deploy_6.yml
- /.gitlab/deploy_7.yml
- /.gitlab/choco_build.yml
- /.gitlab/choco_deploy.yml
- /.gitlab/deploy_invalidate.yml
- /.gitlab/internal_image_deploy.yml
- /.gitlab/trigger_release.yml
- /.gitlab/e2e.yml
- /.gitlab/kitchen_cleanup.yml
- /.gitlab/functional_test.yml
- /.gitlab/functional_test_cleanup.yml
- /.gitlab/notify.yml
# FIXME: our current Gitlab version doesn't support importing a file more than once
# For now, the workaround is to include "common" files once in the top-level .gitlab-ci.yml file
# See: https://gitlab.com/gitlab-org/gitlab/-/issues/28987
- /.gitlab/kitchen_common/cleanup.yml
- /.gitlab/kitchen_common/testing.yml
- /.gitlab/docker_common/publish_job_templates.yml
default:
retry:
max: 2
when:
- runner_system_failure
- stuck_or_timeout_failure
- unknown_failure
- api_failure
workflow:
rules:
- if: $CI_COMMIT_TAG =~ /^dca-/ || $CI_COMMIT_TAG == null || $DEPLOY_AGENT == "true"
stages:
- maintenance_jobs
- deps_build
- deps_fetch
- source_test
- source_test_junit_upload
- binary_build
- integration_test
- package_build
- internal_deploy
- kitchen_deploy
- kitchen_testing
- pkg_metrics
- container_build
- container_scan
- check_deploy
- dev_container_deploy
- deploy6
- deploy7
- choco_build
- choco_deploy
- deploy_invalidate
- internal_image_deploy
- trigger_release
- e2e
- kitchen_cleanup
- functional_test
- functional_test_cleanup
- notify
variables:
# The SRC_PATH is in the GOPATH of the builders which
# currently is /go
SRC_PATH: /go/src/github.com/DataDog/datadog-agent
# Directory in which we execute the omnibus build.
# For an unknown reason, it does not go well with
# a ruby dependency if we build directly into $CI_PROJECT_DIR/.omnibus
OMNIBUS_BASE_DIR: /omnibus
# Directory in which we put the artifacts after the build
# Must be in $CI_PROJECT_DIR
OMNIBUS_PACKAGE_DIR: $CI_PROJECT_DIR/omnibus/pkg/
# Directory in which we put the SUSE artifacts after the SUSE build
# Must be in $CI_PROJECT_DIR
# RPM builds and SUSE RPM builds create artifacts with the same name.
# To differentiate them, we put them in different folders. That also
# avoids accidentally overwriting files when downloading artifacts from
# both RPM and SUSE rpm jobs.
OMNIBUS_PACKAGE_DIR_SUSE: $CI_PROJECT_DIR/omnibus/suse/pkg
DD_AGENT_TESTING_DIR: $CI_PROJECT_DIR/test/kitchen
STATIC_BINARIES_DIR: bin/static
DOGSTATSD_BINARIES_DIR: bin/dogstatsd
AGENT_BINARIES_DIR: bin/agent
CLUSTER_AGENT_BINARIES_DIR: bin/datadog-cluster-agent
CLUSTER_AGENT_CLOUDFOUNDRY_BINARIES_DIR: bin/datadog-cluster-agent-cloudfoundry
SYSTEM_PROBE_BINARIES_DIR: bin/system-probe
DEB_S3_BUCKET: apt.datad0g.com
RPM_S3_BUCKET: yum.datad0g.com
MACOS_S3_BUCKET: dd-agent-macostesting
WIN_S3_BUCKET: dd-agent-mstesting
PROCESS_S3_BUCKET: datad0g-process-agent
ANDROID_S3_BUCKET: dd-agent-androidtesting
BUCKET_BRANCH: nightly # path inside the staging s3 buckets to release to: 'nightly', 'oldnightly', 'beta' or 'stable'
DEB_TESTING_S3_BUCKET: apttesting.datad0g.com
RPM_TESTING_S3_BUCKET: yumtesting.datad0g.com
WINDOWS_TESTING_S3_BUCKET_A6: pipelines/A6/$CI_PIPELINE_ID
WINDOWS_TESTING_S3_BUCKET_A7: pipelines/A7/$CI_PIPELINE_ID
WINDOWS_BUILDS_S3_BUCKET: $WIN_S3_BUCKET/builds
ANDROID_BUILDS_S3_BUCKET: $ANDROID_S3_BUCKET/builds
DEB_RPM_TESTING_BUCKET_BRANCH: testing # branch of the DEB_TESTING_S3_BUCKET and RPM_TESTING_S3_BUCKET repos to release to, 'testing'
DD_REPO_BRANCH_NAME: $CI_COMMIT_REF_NAME
S3_CP_OPTIONS: --only-show-errors --region us-east-1 --sse AES256
S3_CP_CMD: aws s3 cp $S3_CP_OPTIONS
S3_ARTIFACTS_URI: s3://dd-ci-artefacts-build-stable/$CI_PROJECT_NAME/$CI_PIPELINE_ID
S3_PERMANENT_ARTIFACTS_URI: s3://dd-ci-persistent-artefacts-build-stable/$CI_PROJECT_NAME
## comment out both lines below (S3_OMNIBUS_CACHE_BUCKET and USE_S3_CACHING) to allow
## build to succeed with S3 caching disabled.
S3_OMNIBUS_CACHE_BUCKET: dd-ci-datadog-agent-omnibus-cache-build-stable
USE_S3_CACHING: --omnibus-s3-cache
## comment out the line below to disable integration wheels cache
INTEGRATION_WHEELS_CACHE_BUCKET: dd-agent-omnibus
S3_DSD6_URI: s3://dsd6-staging
RELEASE_VERSION_6: nightly
RELEASE_VERSION_7: nightly-a7
DATADOG_AGENT_BUILDIMAGES: v7234175-c5e8b94
DATADOG_AGENT_BUILDERS: v6814105-5ec7b27
DATADOG_AGENT_WINBUILDIMAGES: v6844966-47298a5
DATADOG_AGENT_ARMBUILDIMAGES: v6844966-47298a5
DATADOG_AGENT_SYSPROBE_BUILDIMAGES: v6844966-47298a5
DATADOG_AGENT_NIKOS_BUILDIMAGES: v6844966-47298a5
DATADOG_AGENT_EMBEDDED_PATH: /opt/datadog-agent/embedded
DOCKER_X64_BUILDER: v2718644-9ce6565-18.09.6-py3
NIKOS_INSTALL_DIR: /opt/datadog-agent/embedded/nikos
NIKOS_EMBEDDED_PATH: /opt/datadog-agent/embedded/nikos/embedded
DEB_GPG_KEY_ID: 8387EEAF
DEB_GPG_KEY_NAME: "Datadog, Inc <[email protected]>"
DEB_GPG_KEY_SSM_NAME: ci.datadog-agent.deb_signing_private_key_${DEB_GPG_KEY_ID}
DEB_SIGNING_PASSPHRASE_SSM_NAME: ci.datadog-agent.deb_signing_key_passphrase_${DEB_GPG_KEY_ID}
RPM_GPG_KEY_ID: e09422b3
RPM_GPG_KEY_SSM_NAME: ci.datadog-agent.rpm_signing_private_key_e09422b3
RPM_SIGNING_PASSPHRASE_SSM_NAME: ci.datadog-agent.rpm_signing_key_passphrase_e09422b3
# docker.io authentication
DOCKER_REGISTRY_LOGIN_SSM_KEY: docker_hub_login
DOCKER_REGISTRY_PWD_SSM_KEY: docker_hub_pwd
DOCKER_REGISTRY_URL: docker.io
KITCHEN_INFRASTRUCTURE_FLAKES_RETRY: 2
#
# Condition mixins for simplification of rules
#
.if_main_branch: &if_main_branch
if: $CI_COMMIT_BRANCH == "main"
.if_not_main_branch: &if_not_main_branch
if: $CI_COMMIT_BRANCH != "main"
.if_release_branch: &if_release_branch
if: $CI_COMMIT_BRANCH =~ /^[0-9]+\.[0-9]+\.x$/
.if_version_6: &if_version_6
if: $RELEASE_VERSION_6 != ""
.if_not_version_6: &if_not_version_6
if: $RELEASE_VERSION_6 == ""
.if_version_7: &if_version_7
if: $RELEASE_VERSION_7 != ""
.if_not_version_7: &if_not_version_7
if: $RELEASE_VERSION_7 == ""
.if_deploy: &if_deploy
if: $DEPLOY_AGENT == "true"
.if_not_deploy: &if_not_deploy
if: $DEPLOY_AGENT != "true"
.if_tagged_commit: &if_tagged_commit
if: $CI_COMMIT_TAG != null
.if_not_nightly_repo_branch: &if_not_nightly_repo_branch
if: $BUCKET_BRANCH != "nightly" && $BUCKET_BRANCH != "oldnightly"
.if_not_stable_or_beta_repo_branch: &if_not_stable_or_beta_repo_branch
if: $BUCKET_BRANCH != "beta" && $BUCKET_BRANCH != "stable"
.if_not_stable_repo_branch: &if_not_stable_repo_branch
if: $BUCKET_BRANCH != "stable"
# Rule to trigger all builds conditionally.
# By default:
# - on main and deploy pipelines, all builds are run
# - on branch pipelines, only a subset of build jobs are run (the ARM and MacOS jobs are not run).
# RUN_ALL_BUILDS can be set to true to force all build jobs to be run on a branch pipeline.
# RUN_ALL_BUILDS has no effect on main/deploy pipelines: they always run all builds (as some jobs
# on main and deploy pipelines depend on jobs that are only run if we run all builds).
.if_run_all_builds: &if_run_all_builds
if: $CI_COMMIT_BRANCH == "main" || $DEPLOY_AGENT == "true" || $RUN_ALL_BUILDS == "true"
.if_not_run_all_builds: &if_not_run_all_builds
if: $CI_COMMIT_BRANCH != "main" && $DEPLOY_AGENT != "true" && $RUN_ALL_BUILDS != "true"
# Rule to trigger test kitchen setup, run, and cleanup.
# By default:
# - on main and deploy pipelines, kitchen tests are run
# - on branch pipelines, kitchen tests are not run
# RUN_KITCHEN_TESTS can be set to true to force kitchen tests to be run on a branch pipeline.
# RUN_KITCHEN_TESTS can be set to false to force kitchen tests to not run on main/deploy pipelines.
.if_kitchen: &if_kitchen
if: ($CI_COMMIT_BRANCH == "main" || $DEPLOY_AGENT == "true" || $RUN_KITCHEN_TESTS == "true") && $RUN_KITCHEN_TESTS != "false"
# Rules to trigger default kitchen tests.
# Some of the kitchen tests are run on all pipelines by default. They can only be disabled
# by setting RUN_KITCHEN_TESTS to false.
.if_default_kitchen: &if_default_kitchen
if: $RUN_KITCHEN_TESTS != "false"
.if_testing_cleanup: &if_testing_cleanup
if: $TESTING_CLEANUP == "true"
.if_deploy_on_beta_repo_branch: &if_deploy_on_beta_repo_branch
if: $DEPLOY_AGENT == "true" && $BUCKET_BRANCH == "beta"
.if_deploy_on_stable_repo_branch: &if_deploy_on_stable_repo_branch
if: $DEPLOY_AGENT == "true" && $BUCKET_BRANCH == "stable"
# Rule to trigger jobs only when a tag matches a given pattern (for RCs)
# on the beta branch.
# Note: due to workflow rules, rc tag => deploy pipeline, so there's technically no
# need to check again if the pipeline is a deploy pipeline, but it doesn't hurt
# to explicitly add it.
.if_deploy_on_rc_tag_on_beta_repo_branch: &if_rc_tag_on_beta_repo_branch
if: $DEPLOY_AGENT == "true" && $BUCKET_BRANCH == "beta" && $CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+-rc\.[0-9]+$/
#
# List of rule blocks used in the pipeline
# Any job in the pipeline either runs (with when: on_success) in all pipelines, or follows one of the below rule blocks.
#
.manual:
- when: manual
allow_failure: true
.on_a6:
- <<: *if_version_6
.on_a6_manual:
- <<: *if_version_6
when: manual
allow_failure: true
.on_a7:
- <<: *if_version_7
.on_a7_manual:
- <<: *if_version_7
when: manual
allow_failure: true
.on_dev_branch_manual:
- <<: *if_main_branch
when: never
- <<: *if_tagged_commit
when: never
- when: manual
allow_failure: true
.on_main:
- <<: *if_main_branch
.on_main_manual:
- <<: *if_main_branch
when: manual
allow_failure: true
.on_main_a6:
- <<: *if_not_version_6
when: never
- <<: *if_main_branch
.on_main_a7:
- <<: *if_not_version_7
when: never
- <<: *if_main_branch
.on_tag_or_a7:
- <<: *if_tagged_commit
- <<: *if_version_7
.on_tag_or_a7_all_builds:
- <<: *if_not_run_all_builds
when: never
- <<: *if_tagged_commit
- <<: *if_version_7
.on_deploy:
- <<: *if_deploy
.on_deploy_failure:
- <<: *if_deploy
when: on_failure
.on_deploy_a6:
- <<: *if_not_version_6
when: never
- <<: *if_deploy
.on_deploy_a6_rc:
- <<: *if_not_version_6
when: never
- <<: *if_not_deploy
when: never
- <<: *if_rc_tag_on_beta_repo_branch
when: on_success
variables:
AGENT_REPOSITORY: agent
DSD_REPOSITORY: dogstatsd
IMG_REGISTRIES: public
.on_deploy_a6_manual:
- <<: *if_not_version_6
when: never
- <<: *if_not_deploy
when: never
- <<: *if_not_stable_or_beta_repo_branch
when: manual
allow_failure: true
variables:
AGENT_REPOSITORY: agent-dev
IMG_REGISTRIES: dev
- when: manual
allow_failure: true
variables:
AGENT_REPOSITORY: agent
IMG_REGISTRIES: public
# Same as on_deploy_a6_manual, except the job would not run on pipelines
# using beta branch, it would only run for the final release.
.on_deploy_a6_manual_final:
- <<: *if_not_version_6
when: never
- <<: *if_not_deploy
when: never
- <<: *if_deploy_on_beta_repo_branch
when: never
- <<: *if_not_stable_or_beta_repo_branch
when: manual
allow_failure: true
variables:
AGENT_REPOSITORY: agent-dev
IMG_REGISTRIES: dev
- when: manual
allow_failure: true
variables:
AGENT_REPOSITORY: agent
IMG_REGISTRIES: public
# This rule is a variation of on_deploy_a6_manual where
# the job is usually run manually, except when the pipeline
# builds an RC: in this case, the job is run automatically.
# This is done to reduce the number of manual steps that have
# to be done when creating RCs.
.on_deploy_a6_manual_auto_on_rc:
- <<: *if_not_version_6
when: never
- <<: *if_not_deploy
when: never
- <<: *if_not_stable_or_beta_repo_branch
when: manual
allow_failure: true
variables:
AGENT_REPOSITORY: agent-dev
IMG_REGISTRIES: dev
- <<: *if_rc_tag_on_beta_repo_branch
when: on_success
variables:
AGENT_REPOSITORY: agent
DSD_REPOSITORY: dogstatsd
IMG_REGISTRIES: public
- when: manual
allow_failure: true
variables:
AGENT_REPOSITORY: agent
IMG_REGISTRIES: public
.on_deploy_a7:
- <<: *if_not_version_7
when: never
- <<: *if_deploy
.on_deploy_a7_rc:
- <<: *if_not_version_7
when: never
- <<: *if_not_deploy
when: never
- <<: *if_rc_tag_on_beta_repo_branch
when: on_success
variables:
AGENT_REPOSITORY: agent
DSD_REPOSITORY: dogstatsd
IMG_REGISTRIES: public
.on_deploy_a7_manual:
- <<: *if_not_version_7
when: never
- <<: *if_not_deploy
when: never
- <<: *if_not_stable_or_beta_repo_branch
when: manual
allow_failure: true
variables:
AGENT_REPOSITORY: agent-dev
DSD_REPOSITORY: dogstatsd-dev
IMG_REGISTRIES: dev
- when: manual
allow_failure: true
variables:
AGENT_REPOSITORY: agent
DSD_REPOSITORY: dogstatsd
IMG_REGISTRIES: public
# Same as on_deploy_a7_manual, except the job would not run on pipelines
# using beta branch, it would only run for the final release.
.on_deploy_a7_manual_final:
- <<: *if_not_version_7
when: never
- <<: *if_not_deploy
when: never
- <<: *if_deploy_on_beta_repo_branch
when: never
- <<: *if_not_stable_or_beta_repo_branch
when: manual
allow_failure: true
variables:
AGENT_REPOSITORY: agent-dev
DSD_REPOSITORY: dogstatsd-dev
IMG_REGISTRIES: dev
- when: manual
allow_failure: true
variables:
AGENT_REPOSITORY: agent
DSD_REPOSITORY: dogstatsd
IMG_REGISTRIES: public
# This rule is a variation of on_deploy_a7_manual where
# the job is usually run manually, except when the pipeline
# builds an RC: in this case, the job is run automatically.
# This is done to reduce the number of manual steps that have
# to be done when creating RCs.
.on_deploy_a7_manual_auto_on_rc:
- <<: *if_not_version_7
when: never
- <<: *if_not_deploy
when: never
- <<: *if_not_stable_or_beta_repo_branch
when: manual
allow_failure: true
variables:
AGENT_REPOSITORY: agent-dev
DSD_REPOSITORY: dogstatsd-dev
IMG_REGISTRIES: dev
- <<: *if_rc_tag_on_beta_repo_branch
when: on_success
variables:
AGENT_REPOSITORY: agent
DSD_REPOSITORY: dogstatsd
IMG_REGISTRIES: public
- when: manual
allow_failure: true
variables:
AGENT_REPOSITORY: agent
DSD_REPOSITORY: dogstatsd
IMG_REGISTRIES: public
.on_deploy_nightly_repo_branch_a6:
- <<: *if_not_version_6
when: never
- <<: *if_not_nightly_repo_branch
when: never
- <<: *if_deploy
.on_deploy_nightly_repo_branch_a7:
- <<: *if_not_version_7
when: never
- <<: *if_not_nightly_repo_branch
when: never
- <<: *if_deploy
.on_deploy_stable_or_beta_repo_branch:
- <<: *if_not_stable_or_beta_repo_branch
when: never
- <<: *if_deploy
.on_deploy_stable_or_beta_repo_branch_a6:
- <<: *if_not_version_6
when: never
- <<: *if_not_stable_or_beta_repo_branch
when: never
- <<: *if_deploy
.on_deploy_stable_or_beta_repo_branch_a6_manual:
- <<: *if_not_version_6
when: never
- <<: *if_not_stable_or_beta_repo_branch
when: never
- <<: *if_deploy
when: manual
allow_failure: true
.on_deploy_stable_or_beta_repo_branch_a7:
- <<: *if_not_version_7
when: never
- <<: *if_not_stable_or_beta_repo_branch
when: never
- <<: *if_deploy
.on_deploy_stable_or_beta_repo_branch_a7_manual:
- <<: *if_not_version_7
when: never
- <<: *if_not_stable_or_beta_repo_branch
when: never
- <<: *if_deploy
when: manual
allow_failure: true
.on_deploy_stable_or_rc_tag_on_beta_repo_branch_a7:
- <<: *if_not_version_7
when: never
- <<: *if_not_stable_or_beta_repo_branch
when: never
- <<: *if_rc_tag_on_beta_repo_branch
when: on_success
- <<: *if_deploy_on_stable_repo_branch
when: on_success
- when: never
.on_deploy_stable_or_rc_tag_on_beta_repo_branch_a7_manual_on_stable:
- <<: *if_not_version_7
when: never
- <<: *if_not_stable_or_beta_repo_branch
when: never
- <<: *if_rc_tag_on_beta_repo_branch
when: on_success
- <<: *if_deploy_on_stable_repo_branch
when: manual
allow_failure: true
- when: never
# This rule is a variation of on_deploy_stable_or_beta_repo_branch_a7_manual where
# the job is usually run manually, except when the pipeline
# builds an RC: in this case, the job is run automatically.
# This is done to reduce the number of manual steps that have
# to be done when creating RCs.
.on_deploy_stable_or_beta_repo_branch_a7_manual_auto_on_rc:
- <<: *if_not_version_7
when: never
- <<: *if_not_stable_or_beta_repo_branch
when: never
- <<: *if_rc_tag_on_beta_repo_branch
when: on_success
- <<: *if_deploy
when: manual
allow_failure: true
.on_deploy_stable_repo_branch_a7_manual:
- <<: *if_not_version_7
when: never
- <<: *if_not_stable_repo_branch
when: never
- <<: *if_deploy
when: manual
allow_failure: true
.except_deploy:
- <<: *if_deploy
when: never
- when: on_success
.on_a6_except_deploy:
- <<: *if_not_version_6
when: never
- <<: *if_deploy
when: never
- when: on_success
.on_a7_except_deploy:
- <<: *if_not_version_7
when: never
- <<: *if_deploy
when: never
- when: on_success
.on_main_or_release_branch:
- <<: *if_main_branch
- <<: *if_release_branch
.on_main_or_release_branch_or_deploy:
- <<: *if_deploy
- <<: *if_main_branch
- <<: *if_release_branch
.on_main_or_release_branch_or_deploy_failure:
- <<: *if_deploy
when: on_failure
- <<: *if_main_branch
when: on_failure
- <<: *if_release_branch
when: on_failure
.on_all_builds:
- <<: *if_run_all_builds
.on_all_builds_a6:
- <<: *if_not_version_6
when: never
- <<: *if_run_all_builds
.on_all_builds_a6_manual:
- <<: *if_not_version_6
when: never
- <<: *if_run_all_builds
when: manual
allow_failure: true
.on_all_builds_a7:
- <<: *if_not_version_7
when: never
- <<: *if_run_all_builds
.on_all_builds_a7_manual:
- <<: *if_not_version_7
when: never
- <<: *if_run_all_builds
when: manual
allow_failure: true
.on_kitchen_tests_a6:
- <<: *if_not_version_6
when: never
- <<: *if_kitchen
.on_kitchen_tests_a6_always:
- <<: *if_not_version_6
when: never
- <<: *if_kitchen
when: always
.on_all_kitchen_builds_a6:
- <<: *if_not_version_6
when: never
- <<: *if_not_run_all_builds
when: never
- <<: *if_kitchen
.on_kitchen_tests_a7:
- <<: *if_not_version_7
when: never
- <<: *if_kitchen
.on_kitchen_tests_a7_always:
- <<: *if_not_version_7
when: never
- <<: *if_kitchen
when: always
.on_all_kitchen_builds_a7:
- <<: *if_not_version_7
when: never
- <<: *if_not_run_all_builds
when: never
- <<: *if_kitchen
# Default kitchen tests are also run on dev branches
# In that case, the target OS versions is a subset of the
# available versions, stored in DEFAULT_KITCHEN_OSVERS
.on_default_kitchen_tests_a7:
- <<: *if_not_version_7
when: never
- <<: *if_kitchen
- <<: *if_default_kitchen
variables:
KITCHEN_OSVERS: $DEFAULT_KITCHEN_OSVERS
.on_default_kitchen_tests_a7_always:
- <<: *if_not_version_7
when: never
- <<: *if_kitchen
when: always
- <<: *if_default_kitchen
when: always
variables:
KITCHEN_OSVERS: $DEFAULT_KITCHEN_OSVERS
.on_testing_cleanup:
- <<: *if_testing_cleanup
.on_system_probe_changes_or_manual:
- changes:
- pkg/ebpf/**/*
- pkg/network/**/*
when: on_success
- when: manual
allow_failure: true
.on_install_script_release_manual:
- <<: *if_not_version_7
when: never
- <<: *if_not_version_6
when: never
- <<: *if_not_main_branch
when: never
- <<: *if_kitchen
when: manual
allow_failure: true