harness-mcp-v2 3.2.2 → 3.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/README.md +1 -1
  2. package/build/data/examples/pipeline-v1.d.ts.map +1 -1
  3. package/build/data/examples/pipeline-v1.js +66 -26
  4. package/build/data/examples/pipeline-v1.js.map +1 -1
  5. package/build/data/schemas/index.d.ts +1 -1
  6. package/build/data/schemas/index.d.ts.map +1 -1
  7. package/build/data/schemas/index.js +1 -7
  8. package/build/data/schemas/index.js.map +1 -1
  9. package/build/data/schemas/v0/pipeline.d.ts.map +1 -1
  10. package/build/data/schemas/v0/pipeline.js +3507 -1046
  11. package/build/data/schemas/v0/pipeline.js.map +1 -1
  12. package/build/data/schemas/v0/template.d.ts.map +1 -1
  13. package/build/data/schemas/v0/template.js +4103 -958
  14. package/build/data/schemas/v0/template.js.map +1 -1
  15. package/build/data/schemas/v1/pipeline.d.ts.map +1 -1
  16. package/build/data/schemas/v1/pipeline.js +179 -233
  17. package/build/data/schemas/v1/pipeline.js.map +1 -1
  18. package/build/data/schemas/v1/template.d.ts.map +1 -1
  19. package/build/data/schemas/v1/template.js +210 -694
  20. package/build/data/schemas/v1/template.js.map +1 -1
  21. package/package.json +1 -1
  22. package/build/data/schemas/v1/infra.d.ts +0 -3
  23. package/build/data/schemas/v1/infra.d.ts.map +0 -1
  24. package/build/data/schemas/v1/infra.js +0 -1005
  25. package/build/data/schemas/v1/infra.js.map +0 -1
  26. package/build/data/schemas/v1/service.d.ts +0 -3
  27. package/build/data/schemas/v1/service.d.ts.map +0 -1
  28. package/build/data/schemas/v1/service.js +0 -1386
  29. package/build/data/schemas/v1/service.js.map +0 -1
  30. package/build/data/schemas/v1/trigger.d.ts +0 -3
  31. package/build/data/schemas/v1/trigger.d.ts.map +0 -1
  32. package/build/data/schemas/v1/trigger.js +0 -3361
  33. package/build/data/schemas/v1/trigger.js.map +0 -1
@@ -1,3361 +0,0 @@
1
- // Auto-generated from https://raw.githubusercontent.com/harness/harness-schema/main/v1/trigger.json
2
- // @ts-nocheck
3
- const schema = {
4
- "type": "object",
5
- "title": "trigger_v1",
6
- "required": [
7
- "spec",
8
- "version",
9
- "kind"
10
- ],
11
- "properties": {
12
- "version": {
13
- "description": "Version defines the schema version.",
14
- "type": "number",
15
- "enum": [
16
- 1
17
- ]
18
- },
19
- "kind": {
20
- "description": "defines the kind of yaml (pipeline/template/trigger)",
21
- "type": "string",
22
- "enum": [
23
- "trigger"
24
- ]
25
- },
26
- "spec": {
27
- "$ref": "#/definitions/trigger_v1/trigger_source"
28
- }
29
- },
30
- "$schema": "http://json-schema.org/draft-07/schema#",
31
- "definitions": {
32
- "pipeline": {
33
- "numberVariable": {
34
- "title": "numberVariable",
35
- "type": "object",
36
- "required": [
37
- "value"
38
- ],
39
- "properties": {
40
- "name": {
41
- "type": "string",
42
- "pattern": "^[a-zA-Z_][0-9a-zA-Z_\\.$]{0,63}$"
43
- },
44
- "default": {
45
- "type": "number",
46
- "format": "double"
47
- },
48
- "type": {
49
- "type": "string",
50
- "enum": [
51
- "Number"
52
- ]
53
- },
54
- "value": {
55
- "oneOf": [
56
- {
57
- "type": "number",
58
- "format": "double"
59
- },
60
- {
61
- "type": "string",
62
- "pattern": "((^[+-]?[0-9]*\\.?[0-9]+$)|(<\\+.+>.*))"
63
- }
64
- ]
65
- },
66
- "description": {
67
- "type": "string"
68
- },
69
- "required": {
70
- "type": "boolean"
71
- },
72
- "metadata": {
73
- "type": "string"
74
- }
75
- },
76
- "$schema": "http://json-schema.org/draft-07/schema#"
77
- },
78
- "secretVariable": {
79
- "title": "secretVariable",
80
- "type": "object",
81
- "required": [
82
- "value"
83
- ],
84
- "properties": {
85
- "name": {
86
- "type": "string",
87
- "pattern": "^[a-zA-Z_][0-9a-zA-Z_\\.$]{0,63}$"
88
- },
89
- "default": {
90
- "type": "string"
91
- },
92
- "type": {
93
- "type": "string",
94
- "enum": [
95
- "Secret"
96
- ]
97
- },
98
- "value": {
99
- "type": "string"
100
- },
101
- "description": {
102
- "type": "string"
103
- },
104
- "required": {
105
- "type": "boolean"
106
- },
107
- "metadata": {
108
- "type": "string"
109
- }
110
- },
111
- "$schema": "http://json-schema.org/draft-07/schema#"
112
- },
113
- "stringVariable": {
114
- "title": "stringVariable",
115
- "type": "object",
116
- "required": [
117
- "value"
118
- ],
119
- "properties": {
120
- "name": {
121
- "type": "string",
122
- "pattern": "^[a-zA-Z_][0-9a-zA-Z_\\.$]{0,63}$"
123
- },
124
- "default": {
125
- "type": "string"
126
- },
127
- "type": {
128
- "type": "string",
129
- "enum": [
130
- "String"
131
- ]
132
- },
133
- "value": {
134
- "type": "string"
135
- },
136
- "description": {
137
- "type": "string"
138
- },
139
- "required": {
140
- "type": "boolean"
141
- },
142
- "metadata": {
143
- "type": "string"
144
- }
145
- },
146
- "$schema": "http://json-schema.org/draft-07/schema#"
147
- }
148
- },
149
- "trigger_v1": {
150
- "trigger_source": {
151
- "title": "trigger_source",
152
- "type": "object",
153
- "required": [
154
- "type",
155
- "spec"
156
- ],
157
- "properties": {
158
- "input_set_refs": {
159
- "oneOf": [
160
- {
161
- "type": "array",
162
- "items": {
163
- "type": "string"
164
- }
165
- },
166
- {
167
- "type": "string",
168
- "pattern": "(<\\+.+>.*)",
169
- "minLength": 1
170
- }
171
- ]
172
- },
173
- "inputs": {
174
- "description": "input yaml for the pipeline",
175
- "type": "string"
176
- },
177
- "execute_stages": {
178
- "description": "stage identifiers of the stages to be executed in the pipeline",
179
- "oneOf": [
180
- {
181
- "type": "array",
182
- "items": {
183
- "type": "string"
184
- }
185
- },
186
- {
187
- "type": "string",
188
- "pattern": "(<\\+.+>.*)",
189
- "minLength": 1
190
- }
191
- ]
192
- },
193
- "interval": {
194
- "description": "polling interval",
195
- "type": "string",
196
- "pattern": "(((([1-9])+\\d*[mh])+(\\s/?\\d+[mh])*)|(^$)|(0))$"
197
- },
198
- "type": {
199
- "type": "string",
200
- "enum": [
201
- "webhook",
202
- "artifact",
203
- "manifest",
204
- "scheduled",
205
- "multi-region-artifact",
206
- "system-event"
207
- ]
208
- },
209
- "webhook": {
210
- "description": "webhook identifier",
211
- "type": "string"
212
- }
213
- },
214
- "$schema": "http://json-schema.org/draft-07/schema#",
215
- "allOf": [
216
- {
217
- "if": {
218
- "properties": {
219
- "type": {
220
- "const": "artifact"
221
- }
222
- }
223
- },
224
- "then": {
225
- "properties": {
226
- "spec": {
227
- "$ref": "#/definitions/trigger_v1/trigger_type/artifact_trigger"
228
- }
229
- }
230
- }
231
- },
232
- {
233
- "if": {
234
- "properties": {
235
- "type": {
236
- "const": "manifest"
237
- }
238
- }
239
- },
240
- "then": {
241
- "properties": {
242
- "spec": {
243
- "$ref": "#/definitions/trigger_v1/trigger_type/manifest_trigger"
244
- }
245
- }
246
- }
247
- },
248
- {
249
- "if": {
250
- "properties": {
251
- "type": {
252
- "const": "multi-region-artifact"
253
- }
254
- }
255
- },
256
- "then": {
257
- "properties": {
258
- "spec": {
259
- "$ref": "#/definitions/trigger_v1/trigger_type/multi_region_trigger"
260
- }
261
- }
262
- }
263
- },
264
- {
265
- "if": {
266
- "properties": {
267
- "type": {
268
- "const": "scheduled"
269
- }
270
- }
271
- },
272
- "then": {
273
- "properties": {
274
- "spec": {
275
- "$ref": "#/definitions/trigger_v1/trigger_type/scheduled_trigger"
276
- }
277
- }
278
- }
279
- },
280
- {
281
- "if": {
282
- "properties": {
283
- "type": {
284
- "const": "webhook"
285
- }
286
- }
287
- },
288
- "then": {
289
- "properties": {
290
- "spec": {
291
- "$ref": "#/definitions/trigger_v1/trigger_type/webhook_trigger"
292
- }
293
- }
294
- }
295
- },
296
- {
297
- "if": {
298
- "properties": {
299
- "type": {
300
- "const": "system-event"
301
- }
302
- }
303
- },
304
- "then": {
305
- "properties": {
306
- "spec": {
307
- "$ref": "#/definitions/trigger_v1/trigger_type/system_event_trigger"
308
- }
309
- }
310
- }
311
- }
312
- ]
313
- },
314
- "trigger_type": {
315
- "artifact_trigger": {
316
- "title": "artifact_trigger",
317
- "allOf": [
318
- {
319
- "$ref": "#/definitions/trigger_v1/trigger_spec"
320
- },
321
- {
322
- "type": "object",
323
- "required": [
324
- "type",
325
- "spec"
326
- ],
327
- "properties": {
328
- "type": {
329
- "type": "string",
330
- "enum": [
331
- "gcr",
332
- "ecr",
333
- "docker-registry",
334
- "nexus3-registry",
335
- "nexus2-registry",
336
- "artifactory-registry",
337
- "acr",
338
- "amazon-s3",
339
- "jenkins",
340
- "custom",
341
- "google-artifact-registry",
342
- "github-package-registry",
343
- "azure",
344
- "amazon-machine-image",
345
- "google-cloud-storage",
346
- "bamboo"
347
- ]
348
- }
349
- }
350
- },
351
- {
352
- "if": {
353
- "properties": {
354
- "type": {
355
- "const": "acr"
356
- }
357
- }
358
- },
359
- "then": {
360
- "properties": {
361
- "spec": {
362
- "$ref": "#/definitions/trigger_v1/artifact_trigger/acr_spec"
363
- }
364
- }
365
- }
366
- },
367
- {
368
- "if": {
369
- "properties": {
370
- "type": {
371
- "const": "amazon-machine-image"
372
- }
373
- }
374
- },
375
- "then": {
376
- "properties": {
377
- "spec": {
378
- "$ref": "#/definitions/trigger_v1/artifact_trigger/ami_registry_spec"
379
- }
380
- }
381
- }
382
- },
383
- {
384
- "if": {
385
- "properties": {
386
- "type": {
387
- "const": "amazon-s3"
388
- }
389
- }
390
- },
391
- "then": {
392
- "properties": {
393
- "spec": {
394
- "$ref": "#/definitions/trigger_v1/artifact_trigger/amazon_s3_registry"
395
- }
396
- }
397
- }
398
- },
399
- {
400
- "if": {
401
- "properties": {
402
- "type": {
403
- "const": "artifactory-registry"
404
- }
405
- }
406
- },
407
- "then": {
408
- "properties": {
409
- "spec": {
410
- "$ref": "#/definitions/trigger_v1/artifact_trigger/artifactory_registry"
411
- }
412
- }
413
- }
414
- },
415
- {
416
- "if": {
417
- "properties": {
418
- "type": {
419
- "const": "azure"
420
- }
421
- }
422
- },
423
- "then": {
424
- "properties": {
425
- "spec": {
426
- "$ref": "#/definitions/trigger_v1/artifact_trigger/azure_artifact"
427
- }
428
- }
429
- }
430
- },
431
- {
432
- "if": {
433
- "properties": {
434
- "type": {
435
- "const": "bamboo"
436
- }
437
- }
438
- },
439
- "then": {
440
- "properties": {
441
- "spec": {
442
- "$ref": "#/definitions/trigger_v1/artifact_trigger/bamboo"
443
- }
444
- }
445
- }
446
- },
447
- {
448
- "if": {
449
- "properties": {
450
- "type": {
451
- "const": "custom"
452
- }
453
- }
454
- },
455
- "then": {
456
- "properties": {
457
- "spec": {
458
- "$ref": "#/definitions/trigger_v1/artifact_trigger/custom_artifact"
459
- }
460
- }
461
- }
462
- },
463
- {
464
- "if": {
465
- "properties": {
466
- "type": {
467
- "const": "docker-registry"
468
- }
469
- }
470
- },
471
- "then": {
472
- "properties": {
473
- "spec": {
474
- "$ref": "#/definitions/trigger_v1/artifact_trigger/docker_registry"
475
- }
476
- }
477
- }
478
- },
479
- {
480
- "if": {
481
- "properties": {
482
- "type": {
483
- "const": "ecr"
484
- }
485
- }
486
- },
487
- "then": {
488
- "properties": {
489
- "spec": {
490
- "$ref": "#/definitions/trigger_v1/artifact_trigger/ecr"
491
- }
492
- }
493
- }
494
- },
495
- {
496
- "if": {
497
- "properties": {
498
- "type": {
499
- "const": "gcr"
500
- }
501
- }
502
- },
503
- "then": {
504
- "properties": {
505
- "spec": {
506
- "$ref": "#/definitions/trigger_v1/artifact_trigger/gcr"
507
- }
508
- }
509
- }
510
- },
511
- {
512
- "if": {
513
- "properties": {
514
- "type": {
515
- "const": "github-package-registry"
516
- }
517
- }
518
- },
519
- "then": {
520
- "properties": {
521
- "spec": {
522
- "$ref": "#/definitions/trigger_v1/artifact_trigger/github_packages"
523
- }
524
- }
525
- }
526
- },
527
- {
528
- "if": {
529
- "properties": {
530
- "type": {
531
- "const": "google-artifact-registry"
532
- }
533
- }
534
- },
535
- "then": {
536
- "properties": {
537
- "spec": {
538
- "$ref": "#/definitions/trigger_v1/artifact_trigger/gar_spec"
539
- }
540
- }
541
- }
542
- },
543
- {
544
- "if": {
545
- "properties": {
546
- "type": {
547
- "const": "google-cloud-storage"
548
- }
549
- }
550
- },
551
- "then": {
552
- "properties": {
553
- "spec": {
554
- "$ref": "#/definitions/trigger_v1/artifact_trigger/google_cloud"
555
- }
556
- }
557
- }
558
- },
559
- {
560
- "if": {
561
- "properties": {
562
- "type": {
563
- "const": "jenkins"
564
- }
565
- }
566
- },
567
- "then": {
568
- "properties": {
569
- "spec": {
570
- "$ref": "#/definitions/trigger_v1/artifact_trigger/jenkins_registry"
571
- }
572
- }
573
- }
574
- },
575
- {
576
- "if": {
577
- "properties": {
578
- "type": {
579
- "const": "nexus2-registry"
580
- }
581
- }
582
- },
583
- "then": {
584
- "properties": {
585
- "spec": {
586
- "$ref": "#/definitions/trigger_v1/artifact_trigger/nexus"
587
- }
588
- }
589
- }
590
- },
591
- {
592
- "if": {
593
- "properties": {
594
- "type": {
595
- "const": "nexus3-registry"
596
- }
597
- }
598
- },
599
- "then": {
600
- "properties": {
601
- "spec": {
602
- "$ref": "#/definitions/trigger_v1/artifact_trigger/nexus_registry"
603
- }
604
- }
605
- }
606
- }
607
- ],
608
- "$schema": "http://json-schema.org/draft-07/schema#"
609
- },
610
- "manifest_trigger": {
611
- "title": "manifest_trigger",
612
- "allOf": [
613
- {
614
- "$ref": "#/definitions/trigger_v1/trigger_spec"
615
- },
616
- {
617
- "type": "object",
618
- "required": [
619
- "type",
620
- "spec"
621
- ],
622
- "properties": {
623
- "type": {
624
- "type": "string",
625
- "enum": [
626
- "helm-chart"
627
- ]
628
- }
629
- }
630
- },
631
- {
632
- "if": {
633
- "properties": {
634
- "type": {
635
- "const": "helm-chart"
636
- }
637
- }
638
- },
639
- "then": {
640
- "properties": {
641
- "spec": {
642
- "$ref": "#/definitions/trigger_v1/manifest_trigger/helm_spec"
643
- }
644
- }
645
- }
646
- }
647
- ],
648
- "$schema": "http://json-schema.org/draft-07/schema#"
649
- },
650
- "multi_region_trigger": {
651
- "title": "multi_region_trigger",
652
- "allOf": [
653
- {
654
- "$ref": "#/definitions/trigger_v1/trigger_spec"
655
- },
656
- {
657
- "type": "object",
658
- "required": [
659
- "type",
660
- "sources"
661
- ],
662
- "properties": {
663
- "conditions": {
664
- "$ref": "#/definitions/trigger_v1/artifact_trigger/conditions"
665
- },
666
- "sources": {
667
- "type": "array",
668
- "items": {
669
- "$ref": "#/definitions/trigger_v1/multi_region_artifact/artifact_type_spec_wrapper"
670
- }
671
- },
672
- "type": {
673
- "type": "string",
674
- "enum": [
675
- "gcr",
676
- "ecr",
677
- "docker-registry",
678
- "nexus3-registry",
679
- "nexus2-registry",
680
- "artifactory-registry",
681
- "acr",
682
- "amazon-s3",
683
- "jenkins",
684
- "custom",
685
- "google-artifact-registry",
686
- "github-package-registry",
687
- "azure",
688
- "amazon-machine-image",
689
- "google-cloud-storage",
690
- "bamboo"
691
- ]
692
- }
693
- }
694
- }
695
- ],
696
- "$schema": "http://json-schema.org/draft-07/schema#"
697
- },
698
- "scheduled_trigger": {
699
- "title": "scheduled_trigger",
700
- "allOf": [
701
- {
702
- "$ref": "#/definitions/trigger_v1/trigger_spec"
703
- },
704
- {
705
- "type": "object",
706
- "required": [
707
- "type",
708
- "spec"
709
- ],
710
- "properties": {
711
- "type": {
712
- "type": "string"
713
- }
714
- }
715
- },
716
- {
717
- "if": {
718
- "properties": {
719
- "type": {
720
- "const": "cron"
721
- }
722
- }
723
- },
724
- "then": {
725
- "properties": {
726
- "spec": {
727
- "$ref": "#/definitions/trigger_v1/scheduled_trigger/cron_trigger_spec"
728
- }
729
- }
730
- }
731
- }
732
- ],
733
- "$schema": "http://json-schema.org/draft-07/schema#"
734
- },
735
- "webhook_trigger": {
736
- "title": "webhook_trigger",
737
- "allOf": [
738
- {
739
- "$ref": "#/definitions/trigger_v1/trigger_spec"
740
- },
741
- {
742
- "type": "object",
743
- "required": [
744
- "type",
745
- "spec"
746
- ],
747
- "properties": {
748
- "type": {
749
- "type": "string",
750
- "enum": [
751
- "azure-repo",
752
- "github",
753
- "gitlab",
754
- "bitbucket",
755
- "custom",
756
- "aws-code-commit",
757
- "harness"
758
- ]
759
- }
760
- }
761
- },
762
- {
763
- "if": {
764
- "properties": {
765
- "type": {
766
- "const": "aws-code-commit"
767
- }
768
- }
769
- },
770
- "then": {
771
- "properties": {
772
- "spec": {
773
- "$ref": "#/definitions/trigger_v1/webhook_trigger/aws_commit_spec"
774
- }
775
- }
776
- }
777
- },
778
- {
779
- "if": {
780
- "properties": {
781
- "type": {
782
- "const": "azure-repo"
783
- }
784
- }
785
- },
786
- "then": {
787
- "properties": {
788
- "spec": {
789
- "$ref": "#/definitions/trigger_v1/webhook_trigger/azure_repo_spec"
790
- }
791
- }
792
- }
793
- },
794
- {
795
- "if": {
796
- "properties": {
797
- "type": {
798
- "const": "bitbucket"
799
- }
800
- }
801
- },
802
- "then": {
803
- "properties": {
804
- "spec": {
805
- "$ref": "#/definitions/trigger_v1/webhook_trigger/bitbucket_spec"
806
- }
807
- }
808
- }
809
- },
810
- {
811
- "if": {
812
- "properties": {
813
- "type": {
814
- "const": "custom"
815
- }
816
- }
817
- },
818
- "then": {
819
- "properties": {
820
- "spec": {
821
- "$ref": "#/definitions/trigger_v1/webhook_trigger/custom_trigger_spec"
822
- }
823
- }
824
- }
825
- },
826
- {
827
- "if": {
828
- "properties": {
829
- "type": {
830
- "const": "github"
831
- }
832
- }
833
- },
834
- "then": {
835
- "properties": {
836
- "spec": {
837
- "$ref": "#/definitions/trigger_v1/webhook_trigger/github_spec"
838
- }
839
- }
840
- }
841
- },
842
- {
843
- "if": {
844
- "properties": {
845
- "type": {
846
- "const": "gitlab"
847
- }
848
- }
849
- },
850
- "then": {
851
- "properties": {
852
- "spec": {
853
- "$ref": "#/definitions/trigger_v1/webhook_trigger/gitlab_spec"
854
- }
855
- }
856
- }
857
- },
858
- {
859
- "if": {
860
- "properties": {
861
- "type": {
862
- "const": "harness"
863
- }
864
- }
865
- },
866
- "then": {
867
- "properties": {
868
- "spec": {
869
- "$ref": "#/definitions/trigger_v1/webhook_trigger/harness_spec"
870
- }
871
- }
872
- }
873
- }
874
- ],
875
- "$schema": "http://json-schema.org/draft-07/schema#"
876
- },
877
- "system_event_trigger": {
878
- "title": "system_event_trigger",
879
- "allOf": [
880
- {
881
- "$ref": "#/definitions/trigger_v1/trigger_spec"
882
- },
883
- {
884
- "type": "object",
885
- "required": [
886
- "type",
887
- "spec"
888
- ],
889
- "properties": {
890
- "type": {
891
- "type": "string",
892
- "enum": [
893
- "pipeline"
894
- ]
895
- }
896
- }
897
- },
898
- {
899
- "if": {
900
- "properties": {
901
- "type": {
902
- "const": "pipeline"
903
- }
904
- }
905
- },
906
- "then": {
907
- "properties": {
908
- "spec": {
909
- "$ref": "#/definitions/trigger_v1/system_event_trigger/pipeline_system_event_spec"
910
- }
911
- }
912
- }
913
- }
914
- ],
915
- "$schema": "http://json-schema.org/draft-07/schema#"
916
- }
917
- },
918
- "trigger_spec": {
919
- "title": "trigger_spec",
920
- "type": "object",
921
- "discriminator": "type",
922
- "$schema": "http://json-schema.org/draft-07/schema#"
923
- },
924
- "artifact_trigger": {
925
- "acr_spec": {
926
- "title": "acr_spec",
927
- "allOf": [
928
- {
929
- "$ref": "#/definitions/trigger_v1/artifact_trigger/artifact_type_spec"
930
- },
931
- {
932
- "type": "object",
933
- "properties": {
934
- "connector": {
935
- "type": "string"
936
- },
937
- "conditions": {
938
- "$ref": "#/definitions/trigger_v1/artifact_trigger/conditions"
939
- },
940
- "registry": {
941
- "type": "string"
942
- },
943
- "repo": {
944
- "type": "string"
945
- },
946
- "subscription": {
947
- "description": "subscription identifier",
948
- "type": "string"
949
- },
950
- "tag": {
951
- "type": "string"
952
- }
953
- }
954
- }
955
- ],
956
- "$schema": "http://json-schema.org/draft-07/schema#"
957
- },
958
- "artifact_type_spec": {
959
- "title": "artifact_type_spec",
960
- "type": "object",
961
- "discriminator": "type",
962
- "$schema": "http://json-schema.org/draft-07/schema#"
963
- },
964
- "conditions": {
965
- "title": "conditions",
966
- "description": "conditions for artifact trigger",
967
- "properties": {
968
- "event": {
969
- "type": "array",
970
- "items": {
971
- "$ref": "#/definitions/trigger_v1/trigger_event_data"
972
- }
973
- },
974
- "jexl": {
975
- "type": "string"
976
- },
977
- "metadata": {
978
- "type": "array",
979
- "items": {
980
- "$ref": "#/definitions/trigger_v1/trigger_event_data"
981
- }
982
- }
983
- }
984
- },
985
- "ami_registry_spec": {
986
- "title": "ami_registry_spec",
987
- "allOf": [
988
- {
989
- "$ref": "#/definitions/trigger_v1/artifact_trigger/artifact_type_spec"
990
- },
991
- {
992
- "type": "object",
993
- "properties": {
994
- "connector": {
995
- "type": "string"
996
- },
997
- "filters": {
998
- "type": "array",
999
- "items": {
1000
- "$ref": "#/definitions/trigger_v1/artifact_trigger/ami_filter"
1001
- }
1002
- },
1003
- "conditions": {
1004
- "$ref": "#/definitions/trigger_v1/artifact_trigger/conditions"
1005
- },
1006
- "region": {
1007
- "type": "string"
1008
- },
1009
- "tags": {
1010
- "type": "array",
1011
- "items": {
1012
- "$ref": "#/definitions/trigger_v1/artifact_trigger/ami_tag"
1013
- }
1014
- },
1015
- "version": {
1016
- "type": "string"
1017
- },
1018
- "version_regex": {
1019
- "type": "string"
1020
- }
1021
- }
1022
- }
1023
- ],
1024
- "$schema": "http://json-schema.org/draft-07/schema#"
1025
- },
1026
- "ami_filter": {
1027
- "title": "ami_filter",
1028
- "type": "object",
1029
- "properties": {
1030
- "name": {
1031
- "type": "string"
1032
- },
1033
- "value": {
1034
- "type": "string"
1035
- }
1036
- },
1037
- "$schema": "http://json-schema.org/draft-07/schema#"
1038
- },
1039
- "ami_tag": {
1040
- "title": "ami_tag",
1041
- "type": "object",
1042
- "properties": {
1043
- "name": {
1044
- "type": "string"
1045
- },
1046
- "value": {
1047
- "type": "string"
1048
- }
1049
- },
1050
- "$schema": "http://json-schema.org/draft-07/schema#"
1051
- },
1052
- "amazon_s3_registry": {
1053
- "title": "amazon_s3_registry",
1054
- "allOf": [
1055
- {
1056
- "$ref": "#/definitions/trigger_v1/artifact_trigger/artifact_type_spec"
1057
- },
1058
- {
1059
- "type": "object",
1060
- "properties": {
1061
- "bucket": {
1062
- "type": "string"
1063
- },
1064
- "connector": {
1065
- "type": "string"
1066
- },
1067
- "conditions": {
1068
- "$ref": "#/definitions/trigger_v1/artifact_trigger/conditions"
1069
- },
1070
- "path_regex": {
1071
- "type": "string"
1072
- },
1073
- "region": {
1074
- "type": "string"
1075
- }
1076
- }
1077
- }
1078
- ],
1079
- "$schema": "http://json-schema.org/draft-07/schema#"
1080
- },
1081
- "artifactory_registry": {
1082
- "title": "artifactory_registry",
1083
- "allOf": [
1084
- {
1085
- "$ref": "#/definitions/trigger_v1/artifact_trigger/artifact_type_spec"
1086
- },
1087
- {
1088
- "type": "object",
1089
- "properties": {
1090
- "dir": {
1091
- "type": "string"
1092
- },
1093
- "filter": {
1094
- "type": "string"
1095
- },
1096
- "path": {
1097
- "type": "string"
1098
- },
1099
- "connector": {
1100
- "type": "string"
1101
- },
1102
- "conditions": {
1103
- "$ref": "#/definitions/trigger_v1/artifact_trigger/conditions"
1104
- },
1105
- "repo": {
1106
- "$ref": "#/definitions/trigger_v1/artifact_trigger/artifact repository details"
1107
- }
1108
- }
1109
- }
1110
- ],
1111
- "$schema": "http://json-schema.org/draft-07/schema#"
1112
- },
1113
- "artifact repository details": {
1114
- "title": "artifact repository details",
1115
- "properties": {
1116
- "name": {
1117
- "type": "string"
1118
- },
1119
- "format": {
1120
- "type": "string"
1121
- },
1122
- "url": {
1123
- "type": "string"
1124
- }
1125
- }
1126
- },
1127
- "azure_artifact": {
1128
- "title": "azure_artifact",
1129
- "allOf": [
1130
- {
1131
- "$ref": "#/definitions/trigger_v1/artifact_trigger/artifact_type_spec"
1132
- },
1133
- {
1134
- "type": "object",
1135
- "properties": {
1136
- "connector": {
1137
- "type": "string"
1138
- },
1139
- "conditions": {
1140
- "$ref": "#/definitions/trigger_v1/artifact_trigger/conditions"
1141
- },
1142
- "feed": {
1143
- "type": "string"
1144
- },
1145
- "pkg": {
1146
- "$ref": "#/definitions/trigger_v1/artifact_trigger/Package details"
1147
- },
1148
- "project": {
1149
- "type": "string"
1150
- },
1151
- "version": {
1152
- "type": "string"
1153
- },
1154
- "version_regex": {
1155
- "type": "string"
1156
- }
1157
- }
1158
- }
1159
- ],
1160
- "$schema": "http://json-schema.org/draft-07/schema#"
1161
- },
1162
- "Package details": {
1163
- "title": "Package details",
1164
- "properties": {
1165
- "name": {
1166
- "type": "string",
1167
- "description": "package name"
1168
- },
1169
- "type": {
1170
- "type": "string",
1171
- "description": "package type"
1172
- }
1173
- }
1174
- },
1175
- "bamboo": {
1176
- "title": "bamboo",
1177
- "allOf": [
1178
- {
1179
- "$ref": "#/definitions/trigger_v1/artifact_trigger/artifact_type_spec"
1180
- },
1181
- {
1182
- "type": "object",
1183
- "properties": {
1184
- "paths": {
1185
- "type": "array",
1186
- "items": {
1187
- "type": "string"
1188
- }
1189
- },
1190
- "build": {
1191
- "type": "string"
1192
- },
1193
- "connector": {
1194
- "type": "string"
1195
- },
1196
- "conditions": {
1197
- "$ref": "#/definitions/trigger_v1/artifact_trigger/conditions"
1198
- },
1199
- "plan_key": {
1200
- "type": "string"
1201
- }
1202
- }
1203
- }
1204
- ],
1205
- "$schema": "http://json-schema.org/draft-07/schema#"
1206
- },
1207
- "custom_artifact": {
1208
- "title": "custom_artifact",
1209
- "allOf": [
1210
- {
1211
- "$ref": "#/definitions/trigger_v1/artifact_trigger/artifact_type_spec"
1212
- },
1213
- {
1214
- "type": "object",
1215
- "properties": {
1216
- "path": {
1217
- "type": "string"
1218
- },
1219
- "conditions": {
1220
- "$ref": "#/definitions/trigger_v1/artifact_trigger/conditions"
1221
- },
1222
- "inputs": {
1223
- "type": "array",
1224
- "items": {
1225
- "oneOf": [
1226
- {
1227
- "$ref": "#/definitions/pipeline/numberVariable"
1228
- },
1229
- {
1230
- "$ref": "#/definitions/pipeline/secretVariable"
1231
- },
1232
- {
1233
- "$ref": "#/definitions/pipeline/stringVariable"
1234
- }
1235
- ]
1236
- }
1237
- },
1238
- "metadata": {
1239
- "type": "object",
1240
- "additionalProperties": {
1241
- "type": "string"
1242
- }
1243
- },
1244
- "script": {
1245
- "type": "string"
1246
- },
1247
- "version": {
1248
- "type": "string"
1249
- },
1250
- "version_path": {
1251
- "type": "string"
1252
- }
1253
- }
1254
- }
1255
- ],
1256
- "$schema": "http://json-schema.org/draft-07/schema#"
1257
- },
1258
- "docker_registry": {
1259
- "title": "docker_registry",
1260
- "allOf": [
1261
- {
1262
- "$ref": "#/definitions/trigger_v1/artifact_trigger/artifact_type_spec"
1263
- },
1264
- {
1265
- "type": "object",
1266
- "properties": {
1267
- "connector": {
1268
- "type": "string"
1269
- },
1270
- "conditions": {
1271
- "$ref": "#/definitions/trigger_v1/artifact_trigger/conditions"
1272
- },
1273
- "location": {
1274
- "description": "image path and tag, format-> image_path:tag",
1275
- "type": "string"
1276
- }
1277
- }
1278
- }
1279
- ],
1280
- "$schema": "http://json-schema.org/draft-07/schema#"
1281
- },
1282
- "ecr": {
1283
- "title": "ecr",
1284
- "allOf": [
1285
- {
1286
- "$ref": "#/definitions/trigger_v1/artifact_trigger/artifact_type_spec"
1287
- },
1288
- {
1289
- "type": "object",
1290
- "properties": {
1291
- "connector": {
1292
- "type": "string"
1293
- },
1294
- "conditions": {
1295
- "$ref": "#/definitions/trigger_v1/artifact_trigger/conditions"
1296
- },
1297
- "region": {
1298
- "type": "string"
1299
- },
1300
- "registry": {
1301
- "description": "registry identifier",
1302
- "type": "string"
1303
- },
1304
- "location": {
1305
- "type": "string",
1306
- "description": "image path and tag, format-> image_path:tag"
1307
- }
1308
- }
1309
- }
1310
- ],
1311
- "$schema": "http://json-schema.org/draft-07/schema#"
1312
- },
1313
- "gcr": {
1314
- "title": "gcr",
1315
- "allOf": [
1316
- {
1317
- "$ref": "#/definitions/trigger_v1/artifact_trigger/artifact_type_spec"
1318
- },
1319
- {
1320
- "type": "object",
1321
- "properties": {
1322
- "connector": {
1323
- "type": "string"
1324
- },
1325
- "conditions": {
1326
- "$ref": "#/definitions/trigger_v1/artifact_trigger/conditions"
1327
- },
1328
- "location": {
1329
- "type": "string",
1330
- "description": "image path and tag, format-> image_path:tag"
1331
- },
1332
- "host": {
1333
- "type": "string"
1334
- }
1335
- }
1336
- }
1337
- ],
1338
- "$schema": "http://json-schema.org/draft-07/schema#"
1339
- },
1340
- "github_packages": {
1341
- "title": "github_packages",
1342
- "allOf": [
1343
- {
1344
- "$ref": "#/definitions/trigger_v1/artifact_trigger/artifact_type_spec"
1345
- },
1346
- {
1347
- "type": "object",
1348
- "properties": {
1349
- "connector": {
1350
- "type": "string"
1351
- },
1352
- "conditions": {
1353
- "$ref": "#/definitions/trigger_v1/artifact_trigger/conditions"
1354
- },
1355
- "org": {
1356
- "type": "string"
1357
- },
1358
- "pkg": {
1359
- "$ref": "#/definitions/trigger_v1/artifact_trigger/Package details"
1360
- }
1361
- }
1362
- }
1363
- ],
1364
- "$schema": "http://json-schema.org/draft-07/schema#"
1365
- },
1366
- "gar_spec": {
1367
- "title": "gar_spec",
1368
- "allOf": [
1369
- {
1370
- "$ref": "#/definitions/trigger_v1/artifact_trigger/artifact_type_spec"
1371
- },
1372
- {
1373
- "type": "object",
1374
- "properties": {
1375
- "connector": {
1376
- "type": "string"
1377
- },
1378
- "conditions": {
1379
- "$ref": "#/definitions/trigger_v1/artifact_trigger/conditions"
1380
- },
1381
- "pkg": {
1382
- "type": "string"
1383
- },
1384
- "project": {
1385
- "type": "string"
1386
- },
1387
- "region": {
1388
- "type": "string"
1389
- },
1390
- "repo": {
1391
- "description": "repository name",
1392
- "type": "string"
1393
- },
1394
- "version": {
1395
- "type": "string"
1396
- }
1397
- }
1398
- }
1399
- ],
1400
- "$schema": "http://json-schema.org/draft-07/schema#"
1401
- },
1402
- "google_cloud": {
1403
- "title": "google_cloud",
1404
- "allOf": [
1405
- {
1406
- "$ref": "#/definitions/trigger_v1/artifact_trigger/artifact_type_spec"
1407
- },
1408
- {
1409
- "type": "object",
1410
- "properties": {
1411
- "path": {
1412
- "type": "string"
1413
- },
1414
- "bucket": {
1415
- "type": "string"
1416
- },
1417
- "connector": {
1418
- "type": "string"
1419
- },
1420
- "conditions": {
1421
- "$ref": "#/definitions/trigger_v1/artifact_trigger/conditions"
1422
- },
1423
- "project": {
1424
- "type": "string"
1425
- }
1426
- }
1427
- }
1428
- ],
1429
- "$schema": "http://json-schema.org/draft-07/schema#"
1430
- },
1431
- "jenkins_registry": {
1432
- "title": "jenkins_registry",
1433
- "allOf": [
1434
- {
1435
- "$ref": "#/definitions/trigger_v1/artifact_trigger/artifact_type_spec"
1436
- },
1437
- {
1438
- "type": "object",
1439
- "properties": {
1440
- "path": {
1441
- "type": "string"
1442
- },
1443
- "build": {
1444
- "type": "string"
1445
- },
1446
- "connector": {
1447
- "type": "string"
1448
- },
1449
- "conditions": {
1450
- "$ref": "#/definitions/trigger_v1/artifact_trigger/conditions"
1451
- },
1452
- "job": {
1453
- "description": "job name",
1454
- "type": "string"
1455
- }
1456
- }
1457
- }
1458
- ],
1459
- "$schema": "http://json-schema.org/draft-07/schema#"
1460
- },
1461
- "nexus": {
1462
- "title": "nexus",
1463
- "allOf": [
1464
- {
1465
- "$ref": "#/definitions/trigger_v1/artifact_trigger/artifact_type_spec"
1466
- },
1467
- {
1468
- "type": "object",
1469
- "properties": {
1470
- "artifact": {
1471
- "description": "artifact identifier",
1472
- "type": "string"
1473
- },
1474
- "classifier": {
1475
- "type": "string"
1476
- },
1477
- "connector": {
1478
- "type": "string"
1479
- },
1480
- "conditions": {
1481
- "$ref": "#/definitions/trigger_v1/artifact_trigger/conditions"
1482
- },
1483
- "extension": {
1484
- "type": "string"
1485
- },
1486
- "group_id": {
1487
- "type": "string"
1488
- },
1489
- "pkg": {
1490
- "description": "package name",
1491
- "type": "string"
1492
- },
1493
- "repo": {
1494
- "$ref": "#/definitions/trigger_v1/artifact_trigger/artifact repository details"
1495
- },
1496
- "tag": {
1497
- "type": "string"
1498
- }
1499
- }
1500
- }
1501
- ],
1502
- "$schema": "http://json-schema.org/draft-07/schema#"
1503
- },
1504
- "nexus_registry": {
1505
- "title": "nexus_registry",
1506
- "allOf": [
1507
- {
1508
- "$ref": "#/definitions/trigger_v1/artifact_trigger/artifact_type_spec"
1509
- },
1510
- {
1511
- "type": "object",
1512
- "properties": {
1513
- "artifact": {
1514
- "description": "artifact identifier",
1515
- "type": "string"
1516
- },
1517
- "classifier": {
1518
- "type": "string"
1519
- },
1520
- "connector": {
1521
- "type": "string"
1522
- },
1523
- "extension": {
1524
- "type": "string"
1525
- },
1526
- "group": {
1527
- "type": "string"
1528
- },
1529
- "group_id": {
1530
- "type": "string"
1531
- },
1532
- "location": {
1533
- "type": "string",
1534
- "description": "image path and tag, format-> image_path:tag"
1535
- },
1536
- "conditions": {
1537
- "$ref": "#/definitions/trigger_v1/artifact_trigger/conditions"
1538
- },
1539
- "pkg": {
1540
- "description": "package name",
1541
- "type": "string"
1542
- },
1543
- "repo": {
1544
- "$ref": "#/definitions/trigger_v1/artifact_trigger/artifact repository details"
1545
- }
1546
- }
1547
- }
1548
- ],
1549
- "$schema": "http://json-schema.org/draft-07/schema#"
1550
- }
1551
- },
1552
- "trigger_event_data": {
1553
- "title": "trigger_event_data",
1554
- "type": "object",
1555
- "properties": {
1556
- "key": {
1557
- "type": "string"
1558
- },
1559
- "operator": {
1560
- "type": "string",
1561
- "enum": [
1562
- "in",
1563
- "equals",
1564
- "not-equals",
1565
- "not-in",
1566
- "regex",
1567
- "ends-with",
1568
- "starts-with",
1569
- "contains",
1570
- "does-not-contain"
1571
- ]
1572
- },
1573
- "value": {
1574
- "type": "string"
1575
- }
1576
- },
1577
- "$schema": "http://json-schema.org/draft-07/schema#"
1578
- },
1579
- "manifest_trigger": {
1580
- "helm_spec": {
1581
- "title": "helm_spec",
1582
- "allOf": [
1583
- {
1584
- "$ref": "#/definitions/trigger_v1/manifest_trigger/manifest_spec"
1585
- },
1586
- {
1587
- "type": "object",
1588
- "properties": {
1589
- "chart": {
1590
- "description": "chart details, format-> chart_name@version",
1591
- "type": "string"
1592
- },
1593
- "event_conditions": {
1594
- "type": "array",
1595
- "items": {
1596
- "$ref": "#/definitions/trigger_v1/trigger_event_data"
1597
- }
1598
- },
1599
- "helm_version": {
1600
- "type": "string",
1601
- "enum": [
1602
- "v2",
1603
- "v3",
1604
- "v380"
1605
- ]
1606
- },
1607
- "store": {
1608
- "$ref": "#/definitions/trigger_v1/manifest_trigger/build_store"
1609
- }
1610
- }
1611
- }
1612
- ],
1613
- "$schema": "http://json-schema.org/draft-07/schema#"
1614
- },
1615
- "manifest_spec": {
1616
- "title": "manifest_spec",
1617
- "type": "object",
1618
- "discriminator": "type",
1619
- "$schema": "http://json-schema.org/draft-07/schema#"
1620
- },
1621
- "build_store": {
1622
- "title": "build_store",
1623
- "type": "object",
1624
- "required": [
1625
- "type",
1626
- "spec"
1627
- ],
1628
- "properties": {
1629
- "type": {
1630
- "type": "string",
1631
- "enum": [
1632
- "http",
1633
- "s3",
1634
- "gcs"
1635
- ]
1636
- }
1637
- },
1638
- "$schema": "http://json-schema.org/draft-07/schema#",
1639
- "allOf": [
1640
- {
1641
- "if": {
1642
- "properties": {
1643
- "type": {
1644
- "const": "gcs"
1645
- }
1646
- }
1647
- },
1648
- "then": {
1649
- "properties": {
1650
- "spec": {
1651
- "$ref": "#/definitions/trigger_v1/manifest_trigger/gcs_build_store_spec"
1652
- }
1653
- }
1654
- }
1655
- },
1656
- {
1657
- "if": {
1658
- "properties": {
1659
- "type": {
1660
- "const": "http"
1661
- }
1662
- }
1663
- },
1664
- "then": {
1665
- "properties": {
1666
- "spec": {
1667
- "$ref": "#/definitions/trigger_v1/manifest_trigger/http_build_store_spec"
1668
- }
1669
- }
1670
- }
1671
- },
1672
- {
1673
- "if": {
1674
- "properties": {
1675
- "type": {
1676
- "const": "s3"
1677
- }
1678
- }
1679
- },
1680
- "then": {
1681
- "properties": {
1682
- "spec": {
1683
- "$ref": "#/definitions/trigger_v1/manifest_trigger/s3_build_store_spec"
1684
- }
1685
- }
1686
- }
1687
- }
1688
- ]
1689
- },
1690
- "gcs_build_store_spec": {
1691
- "title": "gcs_build_store_spec",
1692
- "allOf": [
1693
- {
1694
- "$ref": "#/definitions/trigger_v1/manifest_trigger/build_store_spec"
1695
- },
1696
- {
1697
- "type": "object",
1698
- "properties": {
1699
- "location": {
1700
- "description": "bucket name and path to the manifest folder, format-> bucket_name:folder_path",
1701
- "type": "string"
1702
- },
1703
- "connector": {
1704
- "type": "string"
1705
- }
1706
- }
1707
- }
1708
- ],
1709
- "$schema": "http://json-schema.org/draft-07/schema#"
1710
- },
1711
- "build_store_spec": {
1712
- "title": "build_store_spec",
1713
- "type": "object",
1714
- "discriminator": "type",
1715
- "$schema": "http://json-schema.org/draft-07/schema#"
1716
- },
1717
- "http_build_store_spec": {
1718
- "title": "http_build_store_spec",
1719
- "allOf": [
1720
- {
1721
- "$ref": "#/definitions/trigger_v1/manifest_trigger/build_store_spec"
1722
- },
1723
- {
1724
- "type": "object",
1725
- "properties": {
1726
- "connector": {
1727
- "type": "string"
1728
- }
1729
- }
1730
- }
1731
- ],
1732
- "$schema": "http://json-schema.org/draft-07/schema#"
1733
- },
1734
- "s3_build_store_spec": {
1735
- "title": "s3_build_store_spec",
1736
- "allOf": [
1737
- {
1738
- "$ref": "#/definitions/trigger_v1/manifest_trigger/build_store_spec"
1739
- },
1740
- {
1741
- "type": "object",
1742
- "properties": {
1743
- "location": {
1744
- "description": "bucket name and path to the manifest folder, format-> bucket_name:folder_path"
1745
- },
1746
- "connector": {
1747
- "type": "string"
1748
- },
1749
- "region": {
1750
- "type": "string"
1751
- }
1752
- }
1753
- }
1754
- ],
1755
- "$schema": "http://json-schema.org/draft-07/schema#"
1756
- }
1757
- },
1758
- "multi_region_artifact": {
1759
- "artifact_type_spec_wrapper": {
1760
- "title": "artifact_type_spec_wrapper",
1761
- "type": "object",
1762
- "properties": {},
1763
- "required": [
1764
- "type",
1765
- "spec"
1766
- ],
1767
- "$schema": "http://json-schema.org/draft-07/schema#",
1768
- "allOf": [
1769
- {
1770
- "if": {
1771
- "properties": {
1772
- "type": {
1773
- "const": "acr"
1774
- }
1775
- }
1776
- },
1777
- "then": {
1778
- "properties": {
1779
- "spec": {
1780
- "$ref": "#/definitions/trigger_v1/artifact_trigger/acr_spec"
1781
- }
1782
- }
1783
- }
1784
- },
1785
- {
1786
- "if": {
1787
- "properties": {
1788
- "type": {
1789
- "const": "amazon-machine-image"
1790
- }
1791
- }
1792
- },
1793
- "then": {
1794
- "properties": {
1795
- "spec": {
1796
- "$ref": "#/definitions/trigger_v1/artifact_trigger/ami_registry_spec"
1797
- }
1798
- }
1799
- }
1800
- },
1801
- {
1802
- "if": {
1803
- "properties": {
1804
- "type": {
1805
- "const": "amazon-s3"
1806
- }
1807
- }
1808
- },
1809
- "then": {
1810
- "properties": {
1811
- "spec": {
1812
- "$ref": "#/definitions/trigger_v1/artifact_trigger/amazon_s3_registry"
1813
- }
1814
- }
1815
- }
1816
- },
1817
- {
1818
- "if": {
1819
- "properties": {
1820
- "type": {
1821
- "const": "artifactory-registry"
1822
- }
1823
- }
1824
- },
1825
- "then": {
1826
- "properties": {
1827
- "spec": {
1828
- "$ref": "#/definitions/trigger_v1/artifact_trigger/artifactory_registry"
1829
- }
1830
- }
1831
- }
1832
- },
1833
- {
1834
- "if": {
1835
- "properties": {
1836
- "type": {
1837
- "const": "azure"
1838
- }
1839
- }
1840
- },
1841
- "then": {
1842
- "properties": {
1843
- "spec": {
1844
- "$ref": "#/definitions/trigger_v1/artifact_trigger/azure_artifact"
1845
- }
1846
- }
1847
- }
1848
- },
1849
- {
1850
- "if": {
1851
- "properties": {
1852
- "type": {
1853
- "const": "bamboo"
1854
- }
1855
- }
1856
- },
1857
- "then": {
1858
- "properties": {
1859
- "spec": {
1860
- "$ref": "#/definitions/trigger_v1/artifact_trigger/bamboo"
1861
- }
1862
- }
1863
- }
1864
- },
1865
- {
1866
- "if": {
1867
- "properties": {
1868
- "type": {
1869
- "const": "custom"
1870
- }
1871
- }
1872
- },
1873
- "then": {
1874
- "properties": {
1875
- "spec": {
1876
- "$ref": "#/definitions/trigger_v1/artifact_trigger/custom_artifact"
1877
- }
1878
- }
1879
- }
1880
- },
1881
- {
1882
- "if": {
1883
- "properties": {
1884
- "type": {
1885
- "const": "docker-registry"
1886
- }
1887
- }
1888
- },
1889
- "then": {
1890
- "properties": {
1891
- "spec": {
1892
- "$ref": "#/definitions/trigger_v1/artifact_trigger/docker_registry"
1893
- }
1894
- }
1895
- }
1896
- },
1897
- {
1898
- "if": {
1899
- "properties": {
1900
- "type": {
1901
- "const": "ecr"
1902
- }
1903
- }
1904
- },
1905
- "then": {
1906
- "properties": {
1907
- "spec": {
1908
- "$ref": "#/definitions/trigger_v1/artifact_trigger/ecr"
1909
- }
1910
- }
1911
- }
1912
- },
1913
- {
1914
- "if": {
1915
- "properties": {
1916
- "type": {
1917
- "const": "gcr"
1918
- }
1919
- }
1920
- },
1921
- "then": {
1922
- "properties": {
1923
- "spec": {
1924
- "$ref": "#/definitions/trigger_v1/artifact_trigger/gcr"
1925
- }
1926
- }
1927
- }
1928
- },
1929
- {
1930
- "if": {
1931
- "properties": {
1932
- "type": {
1933
- "const": "github-package-registry"
1934
- }
1935
- }
1936
- },
1937
- "then": {
1938
- "properties": {
1939
- "spec": {
1940
- "$ref": "#/definitions/trigger_v1/artifact_trigger/github_packages"
1941
- }
1942
- }
1943
- }
1944
- },
1945
- {
1946
- "if": {
1947
- "properties": {
1948
- "type": {
1949
- "const": "google-artifact-registry"
1950
- }
1951
- }
1952
- },
1953
- "then": {
1954
- "properties": {
1955
- "spec": {
1956
- "$ref": "#/definitions/trigger_v1/artifact_trigger/gar_spec"
1957
- }
1958
- }
1959
- }
1960
- },
1961
- {
1962
- "if": {
1963
- "properties": {
1964
- "type": {
1965
- "const": "google-cloud-storage"
1966
- }
1967
- }
1968
- },
1969
- "then": {
1970
- "properties": {
1971
- "spec": {
1972
- "$ref": "#/definitions/trigger_v1/artifact_trigger/google_cloud"
1973
- }
1974
- }
1975
- }
1976
- },
1977
- {
1978
- "if": {
1979
- "properties": {
1980
- "type": {
1981
- "const": "jenkins"
1982
- }
1983
- }
1984
- },
1985
- "then": {
1986
- "properties": {
1987
- "spec": {
1988
- "$ref": "#/definitions/trigger_v1/artifact_trigger/jenkins_registry"
1989
- }
1990
- }
1991
- }
1992
- },
1993
- {
1994
- "if": {
1995
- "properties": {
1996
- "type": {
1997
- "const": "nexus2-registry"
1998
- }
1999
- }
2000
- },
2001
- "then": {
2002
- "properties": {
2003
- "spec": {
2004
- "$ref": "#/definitions/trigger_v1/artifact_trigger/nexus"
2005
- }
2006
- }
2007
- }
2008
- },
2009
- {
2010
- "if": {
2011
- "properties": {
2012
- "type": {
2013
- "const": "nexus3-registry"
2014
- }
2015
- }
2016
- },
2017
- "then": {
2018
- "properties": {
2019
- "spec": {
2020
- "$ref": "#/definitions/trigger_v1/artifact_trigger/nexus_registry"
2021
- }
2022
- }
2023
- }
2024
- }
2025
- ]
2026
- }
2027
- },
2028
- "scheduled_trigger": {
2029
- "cron_trigger_spec": {
2030
- "title": "cron_trigger_spec",
2031
- "allOf": [
2032
- {
2033
- "$ref": "#/definitions/trigger_v1/scheduled_trigger/scheduled_trigger_spec"
2034
- },
2035
- {
2036
- "type": "object",
2037
- "required": [
2038
- "type",
2039
- "expression"
2040
- ],
2041
- "properties": {
2042
- "expression": {
2043
- "type": "string"
2044
- },
2045
- "type": {
2046
- "type": "string"
2047
- }
2048
- }
2049
- }
2050
- ],
2051
- "$schema": "http://json-schema.org/draft-07/schema#"
2052
- },
2053
- "scheduled_trigger_spec": {
2054
- "title": "scheduled_trigger_spec",
2055
- "type": "object",
2056
- "discriminator": "type",
2057
- "$schema": "http://json-schema.org/draft-07/schema#"
2058
- }
2059
- },
2060
- "webhook_trigger": {
2061
- "aws_commit_spec": {
2062
- "title": "aws_commit_spec",
2063
- "allOf": [
2064
- {
2065
- "$ref": "#/definitions/trigger_v1/webhook_trigger/webhook_trigger_spec"
2066
- },
2067
- {
2068
- "type": "object",
2069
- "required": [
2070
- "type",
2071
- "spec"
2072
- ],
2073
- "properties": {
2074
- "type": {
2075
- "type": "string",
2076
- "enum": [
2077
- "push"
2078
- ]
2079
- }
2080
- }
2081
- },
2082
- {
2083
- "if": {
2084
- "properties": {
2085
- "type": {
2086
- "const": "push"
2087
- }
2088
- }
2089
- },
2090
- "then": {
2091
- "properties": {
2092
- "spec": {
2093
- "$ref": "#/definitions/trigger_v1/webhook_trigger/aws_commit_push_spec"
2094
- }
2095
- }
2096
- }
2097
- }
2098
- ],
2099
- "$schema": "http://json-schema.org/draft-07/schema#"
2100
- },
2101
- "webhook_trigger_spec": {
2102
- "title": "webhook_trigger_spec",
2103
- "type": "object",
2104
- "discriminator": "type",
2105
- "$schema": "http://json-schema.org/draft-07/schema#"
2106
- },
2107
- "aws_commit_push_spec": {
2108
- "title": "aws_commit_push_spec",
2109
- "allOf": [
2110
- {
2111
- "$ref": "#/definitions/trigger_v1/webhook_trigger/aws_commit_event_spec"
2112
- },
2113
- {
2114
- "type": "object",
2115
- "required": [
2116
- "connector"
2117
- ],
2118
- "properties": {
2119
- "connector": {
2120
- "type": "string"
2121
- },
2122
- "conditions": {
2123
- "jexl": {
2124
- "type": "string"
2125
- },
2126
- "payload": {
2127
- "type": "array",
2128
- "items": {
2129
- "$ref": "#/definitions/trigger_v1/trigger_event_data"
2130
- }
2131
- }
2132
- },
2133
- "repo": {
2134
- "description": "repository name",
2135
- "type": "string"
2136
- }
2137
- }
2138
- }
2139
- ],
2140
- "$schema": "http://json-schema.org/draft-07/schema#"
2141
- },
2142
- "aws_commit_event_spec": {
2143
- "title": "aws_commit_event_spec",
2144
- "type": "object",
2145
- "discriminator": "type",
2146
- "$schema": "http://json-schema.org/draft-07/schema#"
2147
- },
2148
- "azure_repo_spec": {
2149
- "title": "azure_repo_spec",
2150
- "allOf": [
2151
- {
2152
- "$ref": "#/definitions/trigger_v1/webhook_trigger/webhook_trigger_spec"
2153
- },
2154
- {
2155
- "type": "object",
2156
- "required": [
2157
- "type",
2158
- "spec"
2159
- ],
2160
- "properties": {
2161
- "type": {
2162
- "type": "string",
2163
- "enum": [
2164
- "pr",
2165
- "push",
2166
- "issue-comment"
2167
- ]
2168
- }
2169
- }
2170
- },
2171
- {
2172
- "if": {
2173
- "properties": {
2174
- "type": {
2175
- "const": "issue-comment"
2176
- }
2177
- }
2178
- },
2179
- "then": {
2180
- "properties": {
2181
- "spec": {
2182
- "$ref": "#/definitions/trigger_v1/webhook_trigger/azure_issue_comment_spec"
2183
- }
2184
- }
2185
- }
2186
- },
2187
- {
2188
- "if": {
2189
- "properties": {
2190
- "type": {
2191
- "const": "pr"
2192
- }
2193
- }
2194
- },
2195
- "then": {
2196
- "properties": {
2197
- "spec": {
2198
- "$ref": "#/definitions/trigger_v1/webhook_trigger/azure_repo_pr_spec"
2199
- }
2200
- }
2201
- }
2202
- },
2203
- {
2204
- "if": {
2205
- "properties": {
2206
- "type": {
2207
- "const": "push"
2208
- }
2209
- }
2210
- },
2211
- "then": {
2212
- "properties": {
2213
- "spec": {
2214
- "$ref": "#/definitions/trigger_v1/webhook_trigger/azure_repo_push_spec"
2215
- }
2216
- }
2217
- }
2218
- }
2219
- ],
2220
- "$schema": "http://json-schema.org/draft-07/schema#"
2221
- },
2222
- "azure_issue_comment_spec": {
2223
- "title": "azure_issue_comment_spec",
2224
- "allOf": [
2225
- {
2226
- "$ref": "#/definitions/trigger_v1/webhook_trigger/azure_repo_event_spec"
2227
- },
2228
- {
2229
- "type": "object",
2230
- "required": [
2231
- "actions",
2232
- "connector"
2233
- ],
2234
- "properties": {
2235
- "actions": {
2236
- "type": "array",
2237
- "items": {
2238
- "type": "string",
2239
- "enum": [
2240
- "create",
2241
- "edit",
2242
- "delete"
2243
- ]
2244
- }
2245
- },
2246
- "abort_previous": {
2247
- "type": "boolean"
2248
- },
2249
- "connector": {
2250
- "type": "string"
2251
- },
2252
- "conditions": {
2253
- "$ref": "#/definitions/trigger_v1/webhook_trigger/conditions"
2254
- },
2255
- "repo": {
2256
- "description": "repository name",
2257
- "type": "string"
2258
- }
2259
- }
2260
- }
2261
- ],
2262
- "$schema": "http://json-schema.org/draft-07/schema#"
2263
- },
2264
- "azure_repo_event_spec": {
2265
- "title": "azure_repo_event_spec",
2266
- "type": "object",
2267
- "discriminator": "type",
2268
- "$schema": "http://json-schema.org/draft-07/schema#"
2269
- },
2270
- "conditions": {
2271
- "title": "conditions",
2272
- "description": "conditions for webhook trigger",
2273
- "properties": {
2274
- "header": {
2275
- "type": "array",
2276
- "items": {
2277
- "$ref": "#/definitions/trigger_v1/trigger_event_data"
2278
- }
2279
- },
2280
- "jexl": {
2281
- "type": "string"
2282
- },
2283
- "payload": {
2284
- "type": "array",
2285
- "items": {
2286
- "$ref": "#/definitions/trigger_v1/trigger_event_data"
2287
- }
2288
- }
2289
- }
2290
- },
2291
- "azure_repo_pr_spec": {
2292
- "title": "azure_repo_pr_spec",
2293
- "allOf": [
2294
- {
2295
- "$ref": "#/definitions/trigger_v1/webhook_trigger/azure_repo_event_spec"
2296
- },
2297
- {
2298
- "type": "object",
2299
- "required": [
2300
- "actions",
2301
- "connector"
2302
- ],
2303
- "properties": {
2304
- "actions": {
2305
- "type": "array",
2306
- "items": {
2307
- "type": "string",
2308
- "enum": [
2309
- "create",
2310
- "update",
2311
- "merge"
2312
- ]
2313
- }
2314
- },
2315
- "abort_previous": {
2316
- "description": "abort previous executions",
2317
- "type": "boolean"
2318
- },
2319
- "connector": {
2320
- "type": "string"
2321
- },
2322
- "conditions": {
2323
- "$ref": "#/definitions/trigger_v1/webhook_trigger/conditions"
2324
- },
2325
- "repo": {
2326
- "description": "repository name",
2327
- "type": "string"
2328
- }
2329
- }
2330
- }
2331
- ],
2332
- "$schema": "http://json-schema.org/draft-07/schema#"
2333
- },
2334
- "azure_repo_push_spec": {
2335
- "title": "azure_repo_push_spec",
2336
- "allOf": [
2337
- {
2338
- "$ref": "#/definitions/trigger_v1/webhook_trigger/azure_repo_event_spec"
2339
- },
2340
- {
2341
- "type": "object",
2342
- "required": [
2343
- "connector"
2344
- ],
2345
- "properties": {
2346
- "abort_previous": {
2347
- "type": "boolean"
2348
- },
2349
- "connector": {
2350
- "type": "string"
2351
- },
2352
- "conditions": {
2353
- "$ref": "#/definitions/trigger_v1/webhook_trigger/conditions"
2354
- },
2355
- "repo": {
2356
- "description": "repository name",
2357
- "type": "string"
2358
- }
2359
- }
2360
- }
2361
- ],
2362
- "$schema": "http://json-schema.org/draft-07/schema#"
2363
- },
2364
- "bitbucket_spec": {
2365
- "title": "bitbucket_spec",
2366
- "allOf": [
2367
- {
2368
- "$ref": "#/definitions/trigger_v1/webhook_trigger/webhook_trigger_spec"
2369
- },
2370
- {
2371
- "type": "object",
2372
- "required": [
2373
- "type",
2374
- "spec"
2375
- ],
2376
- "properties": {
2377
- "type": {
2378
- "type": "string",
2379
- "enum": [
2380
- "pr",
2381
- "push",
2382
- "pr-comment"
2383
- ]
2384
- }
2385
- }
2386
- },
2387
- {
2388
- "if": {
2389
- "properties": {
2390
- "type": {
2391
- "const": "pr-comment"
2392
- }
2393
- }
2394
- },
2395
- "then": {
2396
- "properties": {
2397
- "spec": {
2398
- "$ref": "#/definitions/trigger_v1/webhook_trigger/bitbucket_pr_comment_spec"
2399
- }
2400
- }
2401
- }
2402
- },
2403
- {
2404
- "if": {
2405
- "properties": {
2406
- "type": {
2407
- "const": "pr"
2408
- }
2409
- }
2410
- },
2411
- "then": {
2412
- "properties": {
2413
- "spec": {
2414
- "$ref": "#/definitions/trigger_v1/webhook_trigger/bitbucket_pr_spec"
2415
- }
2416
- }
2417
- }
2418
- },
2419
- {
2420
- "if": {
2421
- "properties": {
2422
- "type": {
2423
- "const": "push"
2424
- }
2425
- }
2426
- },
2427
- "then": {
2428
- "properties": {
2429
- "spec": {
2430
- "$ref": "#/definitions/trigger_v1/webhook_trigger/bitbucket_push_spec"
2431
- }
2432
- }
2433
- }
2434
- }
2435
- ],
2436
- "$schema": "http://json-schema.org/draft-07/schema#"
2437
- },
2438
- "bitbucket_pr_comment_spec": {
2439
- "title": "bitbucket_pr_comment_spec",
2440
- "allOf": [
2441
- {
2442
- "$ref": "#/definitions/trigger_v1/webhook_trigger/bitbucket_event_spec"
2443
- },
2444
- {
2445
- "type": "object",
2446
- "required": [
2447
- "actions",
2448
- "connector"
2449
- ],
2450
- "properties": {
2451
- "actions": {
2452
- "type": "array",
2453
- "items": {
2454
- "type": "string",
2455
- "enum": [
2456
- "create",
2457
- "edit",
2458
- "delete"
2459
- ]
2460
- }
2461
- },
2462
- "abort_previous": {
2463
- "type": "boolean"
2464
- },
2465
- "connector": {
2466
- "type": "string"
2467
- },
2468
- "conditions": {
2469
- "$ref": "#/definitions/trigger_v1/webhook_trigger/conditions"
2470
- },
2471
- "repo": {
2472
- "description": "repository name",
2473
- "type": "string"
2474
- }
2475
- }
2476
- }
2477
- ],
2478
- "$schema": "http://json-schema.org/draft-07/schema#"
2479
- },
2480
- "bitbucket_event_spec": {
2481
- "title": "bitbucket_event_spec",
2482
- "type": "object",
2483
- "discriminator": "type",
2484
- "$schema": "http://json-schema.org/draft-07/schema#"
2485
- },
2486
- "bitbucket_pr_spec": {
2487
- "title": "bitbucket_pr_spec",
2488
- "allOf": [
2489
- {
2490
- "$ref": "#/definitions/trigger_v1/webhook_trigger/bitbucket_event_spec"
2491
- },
2492
- {
2493
- "type": "object",
2494
- "required": [
2495
- "actions",
2496
- "connector"
2497
- ],
2498
- "properties": {
2499
- "actions": {
2500
- "type": "array",
2501
- "items": {
2502
- "type": "string",
2503
- "enum": [
2504
- "create",
2505
- "update",
2506
- "merge",
2507
- "decline"
2508
- ]
2509
- }
2510
- },
2511
- "abort_previous": {
2512
- "type": "boolean"
2513
- },
2514
- "connector": {
2515
- "type": "string"
2516
- },
2517
- "conditions": {
2518
- "$ref": "#/definitions/trigger_v1/webhook_trigger/conditions"
2519
- },
2520
- "repo": {
2521
- "description": "repository name",
2522
- "type": "string"
2523
- }
2524
- }
2525
- }
2526
- ],
2527
- "$schema": "http://json-schema.org/draft-07/schema#"
2528
- },
2529
- "bitbucket_push_spec": {
2530
- "title": "bitbucket_push_spec",
2531
- "allOf": [
2532
- {
2533
- "$ref": "#/definitions/trigger_v1/webhook_trigger/bitbucket_event_spec"
2534
- },
2535
- {
2536
- "type": "object",
2537
- "required": [
2538
- "connector"
2539
- ],
2540
- "properties": {
2541
- "abort_previous": {
2542
- "type": "boolean"
2543
- },
2544
- "connector": {
2545
- "type": "string"
2546
- },
2547
- "conditions": {
2548
- "$ref": "#/definitions/trigger_v1/webhook_trigger/conditions"
2549
- },
2550
- "repo": {
2551
- "description": "repository name",
2552
- "type": "string"
2553
- }
2554
- }
2555
- }
2556
- ],
2557
- "$schema": "http://json-schema.org/draft-07/schema#"
2558
- },
2559
- "custom_trigger_spec": {
2560
- "title": "custom_trigger_spec",
2561
- "allOf": [
2562
- {
2563
- "$ref": "#/definitions/trigger_v1/webhook_trigger/webhook_trigger_spec"
2564
- },
2565
- {
2566
- "type": "object",
2567
- "properties": {
2568
- "conditions": {
2569
- "$ref": "#/definitions/trigger_v1/webhook_trigger/conditions"
2570
- }
2571
- }
2572
- }
2573
- ],
2574
- "$schema": "http://json-schema.org/draft-07/schema#"
2575
- },
2576
- "github_spec": {
2577
- "title": "github_spec",
2578
- "allOf": [
2579
- {
2580
- "$ref": "#/definitions/trigger_v1/webhook_trigger/webhook_trigger_spec"
2581
- },
2582
- {
2583
- "type": "object",
2584
- "required": [
2585
- "type",
2586
- "spec"
2587
- ],
2588
- "properties": {
2589
- "type": {
2590
- "type": "string",
2591
- "enum": [
2592
- "pr",
2593
- "push",
2594
- "issue-comment",
2595
- "release",
2596
- "delete",
2597
- "create"
2598
- ]
2599
- }
2600
- }
2601
- },
2602
- {
2603
- "if": {
2604
- "properties": {
2605
- "type": {
2606
- "const": "issue-comment"
2607
- }
2608
- }
2609
- },
2610
- "then": {
2611
- "properties": {
2612
- "spec": {
2613
- "$ref": "#/definitions/trigger_v1/webhook_trigger/github_issue_comment_spec"
2614
- }
2615
- }
2616
- }
2617
- },
2618
- {
2619
- "if": {
2620
- "properties": {
2621
- "type": {
2622
- "const": "pr"
2623
- }
2624
- }
2625
- },
2626
- "then": {
2627
- "properties": {
2628
- "spec": {
2629
- "$ref": "#/definitions/trigger_v1/webhook_trigger/github_pr_spec"
2630
- }
2631
- }
2632
- }
2633
- },
2634
- {
2635
- "if": {
2636
- "properties": {
2637
- "type": {
2638
- "const": "push"
2639
- }
2640
- }
2641
- },
2642
- "then": {
2643
- "properties": {
2644
- "spec": {
2645
- "$ref": "#/definitions/trigger_v1/webhook_trigger/github_push_spec"
2646
- }
2647
- }
2648
- }
2649
- },
2650
- {
2651
- "if": {
2652
- "properties": {
2653
- "type": {
2654
- "const": "release"
2655
- }
2656
- }
2657
- },
2658
- "then": {
2659
- "properties": {
2660
- "spec": {
2661
- "$ref": "#/definitions/trigger_v1/webhook_trigger/github_release_spec"
2662
- }
2663
- }
2664
- }
2665
- },
2666
- {
2667
- "if": {
2668
- "properties": {
2669
- "type": {
2670
- "const": "delete"
2671
- }
2672
- }
2673
- },
2674
- "then": {
2675
- "properties": {
2676
- "spec": {
2677
- "$ref": "#/definitions/trigger_v1/webhook_trigger/github_delete_spec"
2678
- }
2679
- }
2680
- }
2681
- },
2682
- {
2683
- "if": {
2684
- "properties": {
2685
- "type": {
2686
- "const": "create"
2687
- }
2688
- }
2689
- },
2690
- "then": {
2691
- "properties": {
2692
- "spec": {
2693
- "$ref": "#/definitions/trigger_v1/webhook_trigger/github_create_spec"
2694
- }
2695
- }
2696
- }
2697
- }
2698
- ],
2699
- "$schema": "http://json-schema.org/draft-07/schema#"
2700
- },
2701
- "github_issue_comment_spec": {
2702
- "title": "github_issue_comment_spec",
2703
- "allOf": [
2704
- {
2705
- "$ref": "#/definitions/trigger_v1/webhook_trigger/github_event_spec"
2706
- },
2707
- {
2708
- "type": "object",
2709
- "required": [
2710
- "actions",
2711
- "connector"
2712
- ],
2713
- "properties": {
2714
- "actions": {
2715
- "type": "array",
2716
- "items": {
2717
- "type": "string",
2718
- "enum": [
2719
- "create",
2720
- "edit",
2721
- "delete"
2722
- ]
2723
- }
2724
- },
2725
- "abort_previous": {
2726
- "type": "boolean"
2727
- },
2728
- "connector": {
2729
- "type": "string"
2730
- },
2731
- "conditions": {
2732
- "$ref": "#/definitions/trigger_v1/webhook_trigger/conditions"
2733
- },
2734
- "repo": {
2735
- "description": "repository name",
2736
- "type": "string"
2737
- }
2738
- }
2739
- }
2740
- ],
2741
- "$schema": "http://json-schema.org/draft-07/schema#"
2742
- },
2743
- "github_event_spec": {
2744
- "title": "github_event_spec",
2745
- "type": "object",
2746
- "discriminator": "type",
2747
- "$schema": "http://json-schema.org/draft-07/schema#"
2748
- },
2749
- "github_pr_spec": {
2750
- "title": "github_pr_spec",
2751
- "allOf": [
2752
- {
2753
- "$ref": "#/definitions/trigger_v1/webhook_trigger/github_event_spec"
2754
- },
2755
- {
2756
- "type": "object",
2757
- "required": [
2758
- "actions",
2759
- "connector"
2760
- ],
2761
- "properties": {
2762
- "actions": {
2763
- "type": "array",
2764
- "items": {
2765
- "type": "string",
2766
- "enum": [
2767
- "close",
2768
- "edit",
2769
- "open",
2770
- "reopen",
2771
- "label",
2772
- "unlabel",
2773
- "sync",
2774
- "ready-for-review"
2775
- ]
2776
- }
2777
- },
2778
- "abort_previous": {
2779
- "type": "boolean"
2780
- },
2781
- "connector": {
2782
- "type": "string"
2783
- },
2784
- "conditions": {
2785
- "$ref": "#/definitions/trigger_v1/webhook_trigger/conditions"
2786
- },
2787
- "repo": {
2788
- "description": "repository name",
2789
- "type": "string"
2790
- }
2791
- }
2792
- }
2793
- ],
2794
- "$schema": "http://json-schema.org/draft-07/schema#"
2795
- },
2796
- "github_push_spec": {
2797
- "title": "github_push_spec",
2798
- "allOf": [
2799
- {
2800
- "$ref": "#/definitions/trigger_v1/webhook_trigger/github_event_spec"
2801
- },
2802
- {
2803
- "type": "object",
2804
- "required": [
2805
- "connector"
2806
- ],
2807
- "properties": {
2808
- "abort_previous": {
2809
- "type": "boolean"
2810
- },
2811
- "connector": {
2812
- "type": "string"
2813
- },
2814
- "conditions": {
2815
- "$ref": "#/definitions/trigger_v1/webhook_trigger/conditions"
2816
- },
2817
- "repo": {
2818
- "description": "repository name",
2819
- "type": "string"
2820
- }
2821
- }
2822
- }
2823
- ],
2824
- "$schema": "http://json-schema.org/draft-07/schema#"
2825
- },
2826
- "github_release_spec": {
2827
- "title": "github_release_spec",
2828
- "allOf": [
2829
- {
2830
- "$ref": "#/definitions/trigger_v1/webhook_trigger/github_event_spec"
2831
- },
2832
- {
2833
- "type": "object",
2834
- "required": [
2835
- "actions",
2836
- "connector"
2837
- ],
2838
- "properties": {
2839
- "actions": {
2840
- "type": "array",
2841
- "items": {
2842
- "type": "string",
2843
- "enum": [
2844
- "create",
2845
- "edit",
2846
- "delete",
2847
- "pre-release",
2848
- "publish",
2849
- "release",
2850
- "unpublish"
2851
- ]
2852
- }
2853
- },
2854
- "abort_previous": {
2855
- "type": "boolean"
2856
- },
2857
- "connector": {
2858
- "type": "string"
2859
- },
2860
- "conditions": {
2861
- "$ref": "#/definitions/trigger_v1/webhook_trigger/conditions"
2862
- },
2863
- "repo": {
2864
- "description": "repository name",
2865
- "type": "string"
2866
- }
2867
- }
2868
- }
2869
- ],
2870
- "$schema": "http://json-schema.org/draft-07/schema#"
2871
- },
2872
- "github_delete_spec": {
2873
- "title": "github_delete_spec",
2874
- "allOf": [
2875
- {
2876
- "$ref": "#/definitions/trigger_v1/webhook_trigger/github_event_spec"
2877
- },
2878
- {
2879
- "type": "object",
2880
- "required": [
2881
- "connector"
2882
- ],
2883
- "properties": {
2884
- "connector": {
2885
- "type": "string"
2886
- },
2887
- "conditions": {
2888
- "$ref": "#/definitions/trigger_v1/webhook_trigger/conditions"
2889
- },
2890
- "repo": {
2891
- "description": "repository name",
2892
- "type": "string"
2893
- }
2894
- }
2895
- }
2896
- ],
2897
- "$schema": "http://json-schema.org/draft-07/schema#"
2898
- },
2899
- "github_create_spec": {
2900
- "title": "github_create_spec",
2901
- "allOf": [
2902
- {
2903
- "$ref": "#/definitions/trigger_v1/webhook_trigger/github_event_spec"
2904
- },
2905
- {
2906
- "type": "object",
2907
- "required": [
2908
- "connector"
2909
- ],
2910
- "properties": {
2911
- "connector": {
2912
- "type": "string"
2913
- },
2914
- "conditions": {
2915
- "$ref": "#/definitions/trigger_v1/webhook_trigger/conditions"
2916
- },
2917
- "repo": {
2918
- "description": "repository name",
2919
- "type": "string"
2920
- }
2921
- }
2922
- }
2923
- ],
2924
- "$schema": "http://json-schema.org/draft-07/schema#"
2925
- },
2926
- "gitlab_spec": {
2927
- "title": "gitlab_spec",
2928
- "allOf": [
2929
- {
2930
- "$ref": "#/definitions/trigger_v1/webhook_trigger/webhook_trigger_spec"
2931
- },
2932
- {
2933
- "type": "object",
2934
- "required": [
2935
- "type",
2936
- "spec"
2937
- ],
2938
- "properties": {
2939
- "type": {
2940
- "type": "string",
2941
- "enum": [
2942
- "mr",
2943
- "push",
2944
- "mr-comment",
2945
- "tag"
2946
- ]
2947
- }
2948
- }
2949
- },
2950
- {
2951
- "if": {
2952
- "properties": {
2953
- "type": {
2954
- "const": "mr-comment"
2955
- }
2956
- }
2957
- },
2958
- "then": {
2959
- "properties": {
2960
- "spec": {
2961
- "$ref": "#/definitions/trigger_v1/webhook_trigger/gitlab_mr_comment_spec"
2962
- }
2963
- }
2964
- }
2965
- },
2966
- {
2967
- "if": {
2968
- "properties": {
2969
- "type": {
2970
- "const": "mr"
2971
- }
2972
- }
2973
- },
2974
- "then": {
2975
- "properties": {
2976
- "spec": {
2977
- "$ref": "#/definitions/trigger_v1/webhook_trigger/gitlab_pr_spec"
2978
- }
2979
- }
2980
- }
2981
- },
2982
- {
2983
- "if": {
2984
- "properties": {
2985
- "type": {
2986
- "const": "push"
2987
- }
2988
- }
2989
- },
2990
- "then": {
2991
- "properties": {
2992
- "spec": {
2993
- "$ref": "#/definitions/trigger_v1/webhook_trigger/gitlab_push_spec"
2994
- }
2995
- }
2996
- }
2997
- },
2998
- {
2999
- "if": {
3000
- "properties": {
3001
- "type": {
3002
- "const": "tag"
3003
- }
3004
- }
3005
- },
3006
- "then": {
3007
- "properties": {
3008
- "spec": {
3009
- "$ref": "#/definitions/trigger_v1/webhook_trigger/gitlab_tag_spec"
3010
- }
3011
- }
3012
- }
3013
- }
3014
- ],
3015
- "$schema": "http://json-schema.org/draft-07/schema#"
3016
- },
3017
- "gitlab_mr_comment_spec": {
3018
- "title": "gitlab_mr_comment_spec",
3019
- "allOf": [
3020
- {
3021
- "$ref": "#/definitions/trigger_v1/webhook_trigger/gitlab_event_spec"
3022
- },
3023
- {
3024
- "type": "object",
3025
- "required": [
3026
- "actions",
3027
- "connector"
3028
- ],
3029
- "properties": {
3030
- "actions": {
3031
- "type": "array",
3032
- "items": {
3033
- "type": "string",
3034
- "enum": [
3035
- "create"
3036
- ]
3037
- }
3038
- },
3039
- "abort_previous": {
3040
- "type": "boolean"
3041
- },
3042
- "connector": {
3043
- "type": "string"
3044
- },
3045
- "conditions": {
3046
- "$ref": "#/definitions/trigger_v1/webhook_trigger/conditions"
3047
- },
3048
- "repo": {
3049
- "description": "repository name",
3050
- "type": "string"
3051
- }
3052
- }
3053
- }
3054
- ],
3055
- "$schema": "http://json-schema.org/draft-07/schema#"
3056
- },
3057
- "gitlab_event_spec": {
3058
- "title": "gitlab_event_spec",
3059
- "type": "object",
3060
- "discriminator": "type",
3061
- "$schema": "http://json-schema.org/draft-07/schema#"
3062
- },
3063
- "gitlab_pr_spec": {
3064
- "title": "gitlab_pr_spec",
3065
- "allOf": [
3066
- {
3067
- "$ref": "#/definitions/trigger_v1/webhook_trigger/gitlab_event_spec"
3068
- },
3069
- {
3070
- "type": "object",
3071
- "required": [
3072
- "actions",
3073
- "connector"
3074
- ],
3075
- "properties": {
3076
- "actions": {
3077
- "type": "array",
3078
- "items": {
3079
- "type": "string",
3080
- "enum": [
3081
- "open",
3082
- "close",
3083
- "reopen",
3084
- "merge",
3085
- "update",
3086
- "sync"
3087
- ]
3088
- }
3089
- },
3090
- "abort_previous": {
3091
- "type": "boolean"
3092
- },
3093
- "connector": {
3094
- "type": "string"
3095
- },
3096
- "conditions": {
3097
- "$ref": "#/definitions/trigger_v1/webhook_trigger/conditions"
3098
- },
3099
- "repo": {
3100
- "description": "repository name",
3101
- "type": "string"
3102
- }
3103
- }
3104
- }
3105
- ],
3106
- "$schema": "http://json-schema.org/draft-07/schema#"
3107
- },
3108
- "gitlab_push_spec": {
3109
- "title": "gitlab_push_spec",
3110
- "allOf": [
3111
- {
3112
- "$ref": "#/definitions/trigger_v1/webhook_trigger/gitlab_event_spec"
3113
- },
3114
- {
3115
- "type": "object",
3116
- "required": [
3117
- "connector"
3118
- ],
3119
- "properties": {
3120
- "abort_previous": {
3121
- "type": "boolean"
3122
- },
3123
- "connector": {
3124
- "type": "string"
3125
- },
3126
- "conditions": {
3127
- "$ref": "#/definitions/trigger_v1/webhook_trigger/conditions"
3128
- },
3129
- "repo": {
3130
- "description": "repository name",
3131
- "type": "string"
3132
- }
3133
- }
3134
- }
3135
- ],
3136
- "$schema": "http://json-schema.org/draft-07/schema#"
3137
- },
3138
- "gitlab_tag_spec": {
3139
- "title": "gitlab_tag_spec",
3140
- "allOf": [
3141
- {
3142
- "$ref": "#/definitions/trigger_v1/webhook_trigger/gitlab_event_spec"
3143
- },
3144
- {
3145
- "type": "object",
3146
- "required": [
3147
- "connector"
3148
- ],
3149
- "properties": {
3150
- "abort_previous": {
3151
- "type": "boolean"
3152
- },
3153
- "connector": {
3154
- "type": "string"
3155
- },
3156
- "conditions": {
3157
- "$ref": "#/definitions/trigger_v1/webhook_trigger/conditions"
3158
- },
3159
- "repo": {
3160
- "description": "repository name",
3161
- "type": "string"
3162
- }
3163
- }
3164
- }
3165
- ],
3166
- "$schema": "http://json-schema.org/draft-07/schema#"
3167
- },
3168
- "harness_spec": {
3169
- "title": "harness_spec",
3170
- "allOf": [
3171
- {
3172
- "$ref": "#/definitions/trigger_v1/webhook_trigger/webhook_trigger_spec"
3173
- },
3174
- {
3175
- "type": "object",
3176
- "required": [
3177
- "type",
3178
- "spec"
3179
- ],
3180
- "properties": {
3181
- "type": {
3182
- "type": "string",
3183
- "enum": [
3184
- "pr",
3185
- "push",
3186
- "branch",
3187
- "tag"
3188
- ]
3189
- }
3190
- }
3191
- },
3192
- {
3193
- "if": {
3194
- "properties": {
3195
- "type": {
3196
- "const": "pr"
3197
- }
3198
- }
3199
- },
3200
- "then": {
3201
- "properties": {
3202
- "spec": {
3203
- "$ref": "#/definitions/trigger_v1/webhook_trigger/harness_pr_spec"
3204
- }
3205
- }
3206
- }
3207
- },
3208
- {
3209
- "if": {
3210
- "properties": {
3211
- "type": {
3212
- "const": "push"
3213
- }
3214
- }
3215
- },
3216
- "then": {
3217
- "properties": {
3218
- "spec": {
3219
- "$ref": "#/definitions/trigger_v1/webhook_trigger/harness_push_spec"
3220
- }
3221
- }
3222
- }
3223
- },
3224
- {
3225
- "if": {
3226
- "properties": {
3227
- "type": {
3228
- "const": "branch"
3229
- }
3230
- }
3231
- },
3232
- "then": {
3233
- "properties": {
3234
- "spec": {
3235
- "$ref": "#/definitions/trigger_v1/webhook_trigger/harness_pr_spec"
3236
- }
3237
- }
3238
- }
3239
- },
3240
- {
3241
- "if": {
3242
- "properties": {
3243
- "type": {
3244
- "const": "tag"
3245
- }
3246
- }
3247
- },
3248
- "then": {
3249
- "properties": {
3250
- "spec": {
3251
- "$ref": "#/definitions/trigger_v1/webhook_trigger/harness_pr_spec"
3252
- }
3253
- }
3254
- }
3255
- }
3256
- ],
3257
- "$schema": "http://json-schema.org/draft-07/schema#"
3258
- },
3259
- "harness_pr_spec": {
3260
- "title": "harness_pr_spec",
3261
- "allOf": [
3262
- {
3263
- "$ref": "#/definitions/trigger_v1/webhook_trigger/harness_event_spec"
3264
- },
3265
- {
3266
- "type": "object",
3267
- "required": [
3268
- "actions"
3269
- ],
3270
- "properties": {
3271
- "actions": {
3272
- "type": "array",
3273
- "items": {
3274
- "type": "string",
3275
- "enum": [
3276
- "create",
3277
- "update",
3278
- "reopen",
3279
- "merge",
3280
- "comment"
3281
- ]
3282
- }
3283
- },
3284
- "abort_previous": {
3285
- "type": "boolean"
3286
- },
3287
- "conditions": {
3288
- "$ref": "#/definitions/trigger_v1/webhook_trigger/conditions"
3289
- },
3290
- "repo": {
3291
- "description": "repository name",
3292
- "type": "string"
3293
- }
3294
- }
3295
- }
3296
- ],
3297
- "$schema": "http://json-schema.org/draft-07/schema#"
3298
- },
3299
- "harness_event_spec": {
3300
- "title": "harness_event_spec",
3301
- "type": "object",
3302
- "discriminator": "type",
3303
- "$schema": "http://json-schema.org/draft-07/schema#"
3304
- },
3305
- "harness_push_spec": {
3306
- "title": "harness_push_spec",
3307
- "allOf": [
3308
- {
3309
- "$ref": "#/definitions/trigger_v1/webhook_trigger/harness_event_spec"
3310
- },
3311
- {
3312
- "type": "object",
3313
- "properties": {
3314
- "abort_previous": {
3315
- "type": "boolean"
3316
- },
3317
- "conditions": {
3318
- "$ref": "#/definitions/trigger_v1/webhook_trigger/conditions"
3319
- },
3320
- "repo": {
3321
- "description": "repository name",
3322
- "type": "string"
3323
- }
3324
- }
3325
- }
3326
- ],
3327
- "$schema": "http://json-schema.org/draft-07/schema#"
3328
- }
3329
- },
3330
- "system_event_trigger": {
3331
- "pipeline_system_event_spec": {
3332
- "title": "pipeline_system_event_spec",
3333
- "type": "object",
3334
- "required": [
3335
- "eventType"
3336
- ],
3337
- "properties": {
3338
- "eventType": {
3339
- "description": "The pipeline event type to react to",
3340
- "type": "string",
3341
- "enum": [
3342
- "pipeline-success",
3343
- "pipeline-failure"
3344
- ]
3345
- },
3346
- "payloadConditions": {
3347
- "description": "Optional conditions on the event payload. Supported key is \"sourcePipeline\". Empty list matches any source pipeline.",
3348
- "type": "array",
3349
- "items": {
3350
- "$ref": "#/definitions/trigger_v1/trigger_event_data"
3351
- }
3352
- }
3353
- },
3354
- "$schema": "http://json-schema.org/draft-07/schema#"
3355
- }
3356
- }
3357
- }
3358
- }
3359
- };
3360
- export default schema;
3361
- //# sourceMappingURL=trigger.js.map