-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathschema.json
7395 lines (7395 loc) · 401 KB
/
schema.json
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
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Jenkins Configuration as Code",
"additionalProperties": false,
"type": "object",
"properties": {
"": {
"additionalProperties": false,
"type": "object",
"title": "Configuration base for the classifier",
"properties": {
"credentialsTypeFilter": {
"oneOf": [
{
"additionalProperties": false,
"properties": {"excludes": {"$id": "#/definitions/com.cloudbees.plugins.credentials.CredentialsTypeFilter$Excludes"}}
},
{
"additionalProperties": false,
"properties": {"includes": {"$id": "#/definitions/com.cloudbees.plugins.credentials.CredentialsTypeFilter$Includes"}}
},
{
"additionalProperties": false,
"properties": {"none": {"$id": "#/definitions/com.cloudbees.plugins.credentials.CredentialsTypeFilter$None"}}
}
],
"type": "object"
},
"excludes": {
"additionalProperties": false,
"type": "object",
"properties": {
"provider": {
"description": "",
"type": "string"
},
"type": {
"description": "",
"type": "string"
}
}
},
"configuration": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"credentialsProviderFilter": {
"oneOf": [
{
"additionalProperties": false,
"properties": {"excludes": {"$id": "#/definitions/com.cloudbees.plugins.credentials.CredentialsProviderFilter$Excludes"}}
},
{
"additionalProperties": false,
"properties": {"includes": {"$id": "#/definitions/com.cloudbees.plugins.credentials.CredentialsProviderFilter$Includes"}}
},
{
"additionalProperties": false,
"properties": {"none": {"$id": "#/definitions/com.cloudbees.plugins.credentials.CredentialsProviderFilter$None"}}
}
],
"type": "object"
},
"credentialsProviderTypeRestriction": {
"oneOf": [
{
"additionalProperties": false,
"properties": {"excludes": {"$id": "#/definitions/com.cloudbees.plugins.credentials.CredentialsProviderTypeRestriction$Excludes"}}
},
{
"additionalProperties": false,
"properties": {"includes": {"$id": "#/definitions/com.cloudbees.plugins.credentials.CredentialsProviderTypeRestriction$Includes"}}
}
],
"type": "object"
},
"includes": {
"additionalProperties": false,
"type": "object",
"properties": {
"provider": {
"description": "",
"type": "string"
},
"type": {
"description": "",
"type": "string"
}
}
},
"none": {
"additionalProperties": false,
"type": "object",
"properties": {}
}
}
},
"security": {
"additionalProperties": false,
"type": "object",
"title": "Configuration base for the security classifier",
"properties": {
"crumb": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"apiToken": {
"additionalProperties": false,
"type": "object",
"properties": {
"tokenGenerationOnCreationEnabled": {
"description": "This option causes a legacy API token to be generated automatically for newly created users. \n Because legacy tokens are deprecated, we recommend disabling it and having users instead generate \n new API tokens from the user configuration page as needed.",
"type": "boolean"
},
"creationOfLegacyTokenEnabled": {
"description": "This option allows users to generate a legacy API token if they do not already have one. \n Because legacy tokens are deprecated, we recommend disabling it and having users instead generate \n new API tokens from the user configuration page.",
"type": "boolean"
},
"usageStatisticsEnabled": {
"description": "If this option is enabled, then the date of the most recent use of each API token and the total number of times \n it has been used are stored in Jenkins. \n This allows users to see if they have unused or outdated API tokens which should be revoked.\n \n \n This data is stored in your Jenkins instance and will not be used for any other purpose.",
"type": "boolean"
}
}
},
"queueItemAuthenticator": {},
"updateSiteWarningsConfiguration": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"globalJobDslSecurityConfiguration": {
"additionalProperties": false,
"type": "object",
"properties": {"useScriptSecurity": {
"description": "",
"type": "boolean"
}}
},
"masterKillSwitchConfiguration": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"scriptApproval": {
"additionalProperties": false,
"type": "object",
"$id": "#/definitions/org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval"
},
"sSHD": {
"additionalProperties": false,
"type": "object",
"properties": {"port": {
"description": "Jenkins can act as an SSH server to run a subset of Jenkins CLI commands.\n Plugins may also use this service to expose additional commands. Specify this TCP/IP port number.",
"type": "integer"
}}
}
}
},
"unclassified": {
"additionalProperties": false,
"type": "object",
"title": "Configuration base for the unclassified classifier",
"properties": {
"": {
"additionalProperties": false,
"type": "object",
"properties": {
"password": {
"description": "",
"additionalProperties": false,
"type": "object",
"$id": "#/definitions/hudson.util.Secret"
},
"username": {
"description": "",
"type": "string"
}
}
},
"artifactoryBuilder": {
"additionalProperties": false,
"type": "object",
"properties": {
"useCredentialsPlugin": {
"description": "",
"type": "boolean"
},
"artifactoryServers": {
"description": "",
"type": "array",
"items": [{
"additionalProperties": false,
"type": "object",
"properties": {
"deployerCredentialsConfig": {
"description": "",
"additionalProperties": false,
"type": "object",
"$id": "#/definitions/org.jfrog.hudson.CredentialsConfig"
},
"artifactoryUrl": {
"description": "",
"type": "string"
},
"deploymentThreads": {
"description": "",
"type": "integer"
},
"bypassProxy": {
"description": "",
"type": "boolean"
},
"connectionRetry": {
"description": "",
"type": "integer"
},
"resolverCredentialsConfig": {
"description": "",
"additionalProperties": false,
"type": "object",
"$id": "#/definitions/org.jfrog.hudson.CredentialsConfig"
},
"serverId": {
"description": "",
"type": "string"
},
"timeout": {
"description": "",
"type": "integer"
}
}
}]
}
}
},
"preBuildMerge": {
"additionalProperties": false,
"type": "object",
"properties": {"options": {
"description": "",
"additionalProperties": false,
"type": "object",
"$id": "#/definitions/hudson.plugins.git.UserMergeOptions"
}}
},
"libraryRetriever": {
"oneOf": [
{
"additionalProperties": false,
"properties": {"modernSCM": {"$id": "#/definitions/org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever"}}
},
{
"additionalProperties": false,
"properties": {"legacySCM": {"$id": "#/definitions/org.jenkinsci.plugins.workflow.libs.SCMRetriever"}}
}
],
"type": "object"
},
"abstractBitbucketEndpoint": {
"oneOf": [
{
"additionalProperties": false,
"properties": {"bitbucketServerEndpoint": {"$id": "#/definitions/com.cloudbees.jenkins.plugins.bitbucket.endpoints.BitbucketServerEndpoint"}}
},
{
"additionalProperties": false,
"properties": {"bitbucketCloudEndpoint": {"$id": "#/definitions/com.cloudbees.jenkins.plugins.bitbucket.endpoints.BitbucketCloudEndpoint"}}
}
],
"type": "object"
},
"resourceRoot": {
"additionalProperties": false,
"type": "object",
"properties": {"url": {
"description": "Jenkins serves many files that are potentially created by untrusted users, such as files in project workspaces or archived artifacts.\n When no resource root URL is defined, Jenkins will serve these files with the HTTP header Content-Security-Policy (\"CSP\").\n By default it is set to a value that disables many modern web features to prevent cross-site scripting (XSS) and other attacks on Jenkins users accessing these files.\n While the specific value for the CSP header is user configurable (and can even be disabled), doing so is a trade-off between security and functionality.\n\n\n If the resource root URL is defined, Jenkins will instead redirect requests for user-created resource files to URLs starting with the URL configured here.\n These URLs will not set the CSP header, allowing Javascript and similar features to work.\n For this option to work as expected, the following constraints and considerations apply:\n\n\n The resource root URL must be a valid alternative choice for the Jenkins root URL for requests to be processed correctly.\n The Jenkins root URL must be set and it must be different from this resource root URL (in fact, a different host name is required).\n \n Once set, Jenkins will only serve resource URL requests via the resource root URL.\n All other requests will get HTTP 404 Not Found responses.\n \n\n\n Once this URL has been set up correctly, Jenkins will redirect requests to workspaces, archived artifacts, and similar collections of usually user-generated content to URLs starting with the resource root URL.\n Instead of a path like job/name_here/ws, resource URLs will contain a token encoding that path, the user for which the URL was created, and when it was created.\n These resource URLs access static files as if the user for which they were created would access them:\n If the user\u2019s permission to access these files is removed, the corresponding resource URLs will not work anymore either.\n These URLs are accessible to anyone without authentication until they expire, so sharing these URLs is akin to sharing the files directly.\n\nSecurity considerations\nAuthentication\n\n Resource URLs do not require authentication (users will not have a valid session for the resource root URL).\n Sharing a resource URL with another user, even one lacking Overall/Read permission for Jenkins, will grant that user access to these files until the URLs expire.\n\nExpiration\n\n Resource URLs expire after 30 minutes by default.\n Expired resource URLs will redirect users to their equivalent Jenkins URLs, so that the user can reauthenticate, if necessary, and then be redirected back to a new resource URL that will be valid for another 30 minutes.\n This will generally be transparent to the user if they have a valid Jenkins session.\n Otherwise, they will need to authenticate with Jenkins again.\n However, when browsing pages with HTML frames, like Javadoc sites, the login form cannot appear in a frame.\n In these cases, users will need to reload the top-level frame to make the login form appear.\n\n\n To change how quickly resource URLs expire, set the system property jenkins.security.ResourceDomainRootAction.validForMinutes to the desired value in minutes.\n Earlier expiration might make it harder to use these URLs, while later expiration increases the likelihood of unauthorized users gaining access through URLs shared with them by authorized users.\n\nAuthenticity\n\n Resource URLs encode the URL, the user for which they were created, and their creation timestamp.\n Additionally, this string contains an HMAC to ensure the authenticity of the URL.\n This prevents attackers from forging URLs that would grant them access to resource files as if they were another user.",
"type": "string"
}}
},
"globalLibraries": {
"additionalProperties": false,
"type": "object",
"$id": "#/definitions/org.jenkinsci.plugins.workflow.libs.GlobalLibraries"
},
"jobBuildDiscarder": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"checkoutOption": {
"additionalProperties": false,
"type": "object",
"properties": {"timeout": {
"description": "Specify a timeout (in minutes) for checkout.\n This option overrides the default timeout of 10 minutes. \n You can change the global git timeout via the property org.jenkinsci.plugins.gitclient.Git.timeOut (see JENKINS-11286).\n Note that property should be set on both master and agent to have effect (see JENKINS-22547).",
"type": "integer"
}}
},
"authorInChangelog": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"bitbucketWeb": {
"additionalProperties": false,
"type": "object",
"properties": {"repoUrl": {
"description": "Specify the root URL serving this repository (such as https://bitbucket.org/OWNER/REPO/).",
"type": "string"
}}
},
"none": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"fisheyeGit": {
"additionalProperties": false,
"type": "object",
"properties": {"repoUrl": {
"description": "Specify the URL of this repository in FishEye (such as http://fisheye6.cenqua.com/browse/ant/).",
"type": "string"
}}
},
"gitHubPluginConfig": {
"additionalProperties": false,
"type": "object",
"properties": {
"configs": {
"description": "",
"type": "array",
"items": [{
"additionalProperties": false,
"type": "object",
"properties": {
"apiUrl": {
"description": "",
"type": "string"
},
"clientCacheSize": {
"description": "",
"type": "integer"
},
"manageHooks": {
"description": "",
"type": "boolean"
},
"name": {
"description": "",
"type": "string"
},
"credentialsId": {
"description": "",
"type": "string"
}
}
}]
},
"hookSecretConfig": {
"description": "",
"additionalProperties": false,
"type": "object",
"$id": "#/definitions/org.jenkinsci.plugins.github.config.HookSecretConfig"
},
"hookUrl": {
"description": "",
"type": "string"
}
}
},
"ivyBuildTrigger": {
"additionalProperties": false,
"type": "object",
"properties": {
"configurations": {
"description": "",
"type": "array",
"items": [{
"additionalProperties": false,
"type": "object",
"properties": {
"name": {
"description": "",
"type": "string"
},
"ivyConfPath": {
"description": "",
"type": "string"
}
}
}]
},
"extendedVersionMatching": {
"description": "",
"type": "boolean"
}
}
},
"quietPeriod": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"xml": {
"additionalProperties": false,
"type": "object",
"properties": {
"providerId": {
"description": "",
"type": "string"
},
"name": {
"description": "",
"type": "string"
},
"comment": {
"description": "",
"type": "string"
},
"id": {
"description": "",
"type": "string"
},
"content": {
"description": "",
"type": "string"
}
}
},
"pipeline-model-docker": {
"additionalProperties": false,
"type": "object",
"properties": {
"registry": {
"description": "",
"additionalProperties": false,
"type": "object",
"$id": "#/definitions/org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint"
},
"dockerLabel": {
"description": "<!--\n ~ The MIT License\n ~\n ~ Copyright (c) 2016, CloudBees, Inc.\n ~\n ~ Permission is hereby granted, free of charge, to any person obtaining a copy\n ~ of this software and associated documentation files (the \"Software\"), to deal\n ~ in the Software without restriction, including without limitation the rights\n ~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n ~ copies of the Software, and to permit persons to whom the Software is\n ~ furnished to do so, subject to the following conditions:\n ~\n ~ The above copyright notice and this permission notice shall be included in\n ~ all copies or substantial portions of the Software.\n ~\n ~ THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n ~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n ~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n ~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n ~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n ~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n ~ THE SOFTWARE.\n ~\n -->\n\n\n The label expression to use when a pipeline runs with\n agent { docker ... } or agent { dockerfile ... }\n and no explicit label is provided. Leave empty to\n delegate to parent or system config.",
"type": "string"
}
}
},
"pruneStaleBranch": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"scm": {
"oneOf": [
{
"additionalProperties": false,
"properties": {"git": {"$id": "#/definitions/hudson.plugins.git.GitSCM"}}
},
{
"additionalProperties": false,
"properties": {"mercurial": {"$id": "#/definitions/hudson.plugins.mercurial.MercurialSCM"}}
},
{
"additionalProperties": false,
"properties": {"none": {"$id": "#/definitions/hudson.scm.NullSCM"}}
}
],
"type": "object"
},
"legacySCM": {
"additionalProperties": false,
"type": "object",
"properties": {"scm": {
"description": "",
"additionalProperties": false,
"type": "object",
"$id": "#/definitions/hudson.scm.SCM"
}}
},
"masterBuild": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"bitbucketBranchDiscovery": {
"additionalProperties": false,
"type": "object",
"properties": {"strategyId": {
"description": "Determines which branches are discovered.\n \n Exclude branches that are also filed as PRs\n \n If you are discovering origin pull requests, it may not make sense to discover the same changes both as a\n pull request and as a branch.\n \n Only branches that are also filed as PRs\n \n This option exists to preserve legacy behaviour when upgrading from older versions of the plugin.\n NOTE: If you have an actual use case for this option please file a pull request against this text.\n \n All branches\n \n Ignores whether the branch is also filed as a pull request and instead discovers all branches on the\n origin repository.",
"type": "integer"
}}
},
"globalConfigFiles": {
"additionalProperties": false,
"type": "object",
"$id": "#/definitions/org.jenkinsci.plugins.configfiles.GlobalConfigFiles"
},
"jiraGlobalConfiguration": {
"additionalProperties": false,
"type": "object",
"$id": "#/definitions/hudson.plugins.jira.JiraGlobalConfiguration"
},
"bitbucketWebhookConfiguration": {
"additionalProperties": false,
"type": "object",
"properties": {"committersToIgnore": {
"description": "",
"type": "string"
}}
},
"github": {
"additionalProperties": false,
"type": "object",
"properties": {
"apiUri": {
"description": "The server to connect to. The list of servers is configured in the Manage Jenkins » Configure\n Jenkins \u203a GitHub Enterprise Servers screen.",
"type": "string"
},
"traits": {
"description": "The behaviours control what is discovered from the GitHub repository. The behaviours are grouped into a number\n of categories:\n \n Within repository\n These behaviours determine what gets discovered. If you do not configure at least one discovery\n behaviour then nothing will be found!\n General\n These behaviours affect the configuration of each discovered branch / pull request.",
"type": "array",
"items": [{
"additionalProperties": false,
"type": "object",
"properties": {}
}]
},
"repoOwner": {
"description": "Specify the name of the GitHub Organization or GitHub User Account.",
"type": "string"
},
"credentialsId": {
"description": "Credentials used to scan branches and pull requests,\n check out sources and mark commit statuses.\n \n \n Note that only \"username with password\" credentials are supported.\n Existing credentials of other kinds will be filtered out. This is because Jenkins\n uses the GitHub API, which does not support other ways of authentication.\n \n \n If none is given, only the public repositories will be scanned, and commit status\n will not be set on GitHub.\n \n \n If your organization contains private repositories, then you need to specify\n a credential from a user who has access to those repositories. This is done\n by creating a \"username with password\" credential where the password is\n GitHub personal access tokens.\n The necessary scope is \"repo\".",
"type": "string"
},
"id": {
"description": "",
"type": "string"
},
"repository": {
"description": "The repository to scan.",
"type": "string"
},
"configuredByUrl": {
"description": "",
"type": "boolean"
},
"repositoryUrl": {
"description": "Specify the HTTPS URL of the GitHub Organization / User Account and repository.\n \n GitHub examples:\n \n https://github.com/jenkinsci/github-branch-source-plugin\n https://github.com/jenkinsci/github-branch-source-plugin.git\n \n \n \n GitHub Enterprise examples:\n \n https://myccompany.github.com/jenkinsci/github-branch-source-plugin\n https://myccompany.github.com/jenkinsci/github-branch-source-plugin.git",
"type": "string"
}
}
},
"rebuildDescriptor": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"cleanCheckout": {
"additionalProperties": false,
"type": "object",
"properties": {"deleteUntrackedNestedRepositories": {
"description": "Deletes untracked submodules and any other subdirectories which contain .git directories.",
"type": "boolean"
}}
},
"gitHubForkDiscovery": {
"additionalProperties": false,
"type": "object",
"properties": {
"trust": {
"description": "One of the great powers of pull requests is that anyone with read access to a repository can fork it, commit\n some changes to their fork and then create a pull request against the original repository with their changes.\n There are some files stored in source control that are important. For example, a Jenkinsfile\n may contain configuration details to sandbox pull requests in order to mitigate against malicious pull requests.\n In order to protect against a malicious pull request itself modifying the Jenkinsfile to remove\n the protections, you can define the trust policy for pull requests from forks.\n \n \n Other plugins can extend the available trust policies. The default policies are:\n \n \n Nobody\n \n Pull requests from forks will all be treated as untrusted. This means that where Jenkins requires a\n trusted file (e.g. Jenkinsfile) the contents of that file will be retrieved from the\n target branch on the origin repository and not from the pull request branch on the fork repository.\n \n Contributors\n \n Pull requests from collaborators\n to the origin repository will be treated as trusted, all other pull requests from fork repositories\n will be treated as untrusted.\n Note that if credentials used by Jenkins for scanning the repository does not have permission to\n query the list of contributors to the origin repository then only the origin account will be treated\n as trusted - i.e. this will fall back to Nobody.\n NOTE: all collaborators are trusted, even if they are only members of a team with read permission.\n \n Everyone\n \n All pull requests from forks will be treated as trusted. NOTE: this option can be dangerous\n if used on a public repository hosted on GitHub.\n \n From users with Admin or Write permission\n \n Pull requests forks will be treated as trusted if and only if the fork owner has either Admin or Write\n permissions on the origin repository.\n This is the recommended policy.\n Note that this strategy requires the\n Review\n a user's permission level API, as a result on GitHub Enterprise Server versions before 2.12 this\n is the same as trusting Nobody.",
"additionalProperties": false,
"type": "object",
"$id": "#/definitions/jenkins.scm.api.trait.SCMHeadAuthority"
},
"strategyId": {
"description": "Determines how pull requests are discovered:\n \n Merging the pull request with the current target branch revision\n Discover each pull request once with the discovered revision corresponding to the result of merging with the\n current revision of the target branch.\n \n The current pull request revision\n Discover each pull request once with the discovered revision corresponding to the pull request head revision\n without merging.\n \n Both the current pull request revision and the pull request merged with the current target branch revision\n Discover each pull request twice. The first discovered revision corresponds to the result of merging with\n the current revision of the target branch in each scan. The second parallel discovered revision corresponds\n to the pull request head revision without merging.",
"type": "integer"
}
}
},
"scmRetryCount": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"ivyModuleSet": {
"additionalProperties": false,
"type": "object",
"properties": {"globalAntOpts": {
"description": "",
"type": "string"
}}
},
"gitHubTrustPermissions": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"gitSCM": {
"additionalProperties": false,
"type": "object",
"properties": {
"globalConfigEmail": {
"description": "",
"type": "string"
},
"showEntireCommitSummaryInChanges": {
"description": "",
"type": "boolean"
},
"createAccountBasedOnEmail": {
"description": "",
"type": "boolean"
},
"useExistingAccountWithSameEmail": {
"description": "",
"type": "boolean"
},
"globalConfigName": {
"description": "",
"type": "string"
}
}
},
"mailer": {
"additionalProperties": false,
"type": "object",
"properties": {
"charset": {
"description": "",
"type": "string"
},
"defaultSuffix": {
"description": "",
"type": "string"
},
"smtpHost": {
"description": "",
"type": "string"
},
"smtpPort": {
"description": "",
"type": "string"
},
"replyToAddress": {
"description": "",
"type": "string"
},
"authentication": {
"description": "",
"additionalProperties": false,
"type": "object",
"$id": "#/definitions/hudson.tasks.SMTPAuthentication"
},
"useSsl": {
"description": "",
"type": "boolean"
}
}
},
"slackUserIdResolver": {
"oneOf": [
{
"additionalProperties": false,
"properties": {"no": {"$id": "#/definitions/jenkins.plugins.slack.user.NoSlackUserIdResolver"}}
},
{
"additionalProperties": false,
"properties": {"email": {"$id": "#/definitions/jenkins.plugins.slack.user.EmailSlackUserIdResolver"}}
}
],
"type": "object"
},
"perExecutor": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"viewsTabBar": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"logRotator": {
"additionalProperties": false,
"type": "object",
"properties": {
"artifactDaysToKeepStr": {
"description": "",
"type": "string"
},
"daysToKeepStr": {
"description": "",
"type": "string"
},
"numToKeepStr": {
"description": "",
"type": "string"
},
"artifactNumToKeepStr": {
"description": "",
"type": "string"
}
}
},
"kallithea": {
"additionalProperties": false,
"type": "object",
"properties": {"url": {
"description": "",
"type": "string"
}}
},
"gitHubPullRequestDiscovery": {
"additionalProperties": false,
"type": "object",
"properties": {"strategyId": {
"description": "Determines how pull requests are discovered:\n \n Merging the pull request with the current target branch revision\n Discover each pull request once with the discovered revision corresponding to the result of merging with the\n current revision of the target branch.\n \n The current pull request revision\n Discover each pull request once with the discovered revision corresponding to the pull request head revision\n without merging.\n \n Both the current pull request revision and the pull request merged with the current target branch revision\n Discover each pull request twice. The first discovered revision corresponds to the result of merging with\n the current revision of the target branch in each scan. The second parallel discovered revision corresponds\n to the pull request head revision without merging.",
"type": "integer"
}}
},
"buildDiscarders": {
"additionalProperties": false,
"type": "object",
"$id": "#/definitions/jenkins.model.GlobalBuildDiscarderConfiguration"
},
"gitHubTrustEveryone": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"githubWeb": {
"additionalProperties": false,
"type": "object",
"properties": {"repoUrl": {
"description": "Specify the HTTP URL for this repository's GitHub page (such as https://github.com/jquery/jquery).",
"type": "string"
}}
},
"hgWeb": {
"additionalProperties": false,
"type": "object",
"properties": {"url": {
"description": "Specify the root URL serving this repository (such as this).",
"type": "string"
}}
},
"assemblaWeb": {
"additionalProperties": false,
"type": "object",
"properties": {"repoUrl": {
"description": "Specify the root URL serving this repository (such as https://www.assembla.com/code/PROJECT/git/).",
"type": "string"
}}
},
"headRegexFilter": {
"additionalProperties": false,
"type": "object",
"properties": {"regex": {
"description": "<!--\n ~ The MIT License\n ~\n ~ Copyright (c) 2017, CloudBees, Inc.\n ~\n ~ Permission is hereby granted, free of charge, to any person obtaining a copy\n ~ of this software and associated documentation files (the \"Software\"), to deal\n ~ in the Software without restriction, including without limitation the rights\n ~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n ~ copies of the Software, and to permit persons to whom the Software is\n ~ furnished to do so, subject to the following conditions:\n ~\n ~ The above copyright notice and this permission notice shall be included in\n ~ all copies or substantial portions of the Software.\n ~\n ~ THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n ~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n ~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n ~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n ~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n ~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n ~ THE SOFTWARE.\n -->\n\n A Java regular expression to\n restrict the names. Names that do not match the supplied regular expression will be ignored.\n NOTE: this filter will be applied to all branch like things, including change requests",
"type": "string"
}}
},
"cGit": {
"additionalProperties": false,
"type": "object",
"properties": {"repoUrl": {
"description": "",
"type": "string"
}}
},
"triggersConfig": {
"additionalProperties": false,
"type": "object",
"properties": {
"envVar": {
"description": "",
"type": "string"
},
"skipScmCause": {
"description": "",
"type": "boolean"
},
"skipUpstreamCause": {
"description": "",
"type": "boolean"
}
}
},
"gitRepositoryBrowser": {
"oneOf": [
{
"additionalProperties": false,
"properties": {"gitiles": {"$id": "#/definitions/hudson.plugins.git.browser.Gitiles"}}
},
{
"additionalProperties": false,
"properties": {"cGit": {"$id": "#/definitions/hudson.plugins.git.browser.CGit"}}
},
{
"additionalProperties": false,
"properties": {"gitList": {"$id": "#/definitions/hudson.plugins.git.browser.GitList"}}
},
{
"additionalProperties": false,
"properties": {"bitBucket": {"$id": "#/definitions/hudson.plugins.mercurial.browser.BitBucket"}}
},
{
"additionalProperties": false,
"properties": {"viewGitWeb": {"$id": "#/definitions/hudson.plugins.git.browser.ViewGitWeb"}}
},
{
"additionalProperties": false,
"properties": {"redmineWeb": {"$id": "#/definitions/hudson.plugins.git.browser.RedmineWeb"}}
},
{
"additionalProperties": false,
"properties": {"bitbucketWeb": {"$id": "#/definitions/hudson.plugins.git.browser.BitbucketWeb"}}
},
{
"additionalProperties": false,
"properties": {"kilnHG": {"$id": "#/definitions/hudson.plugins.mercurial.browser.KilnHG"}}
},
{
"additionalProperties": false,
"properties": {"fishEye": {"$id": "#/definitions/hudson.plugins.mercurial.browser.FishEye"}}
},
{
"additionalProperties": false,
"properties": {"gitLab": {"$id": "#/definitions/hudson.plugins.git.browser.GitLab"}}
},
{
"additionalProperties": false,
"properties": {"rhodeCode": {"$id": "#/definitions/hudson.plugins.git.browser.RhodeCode"}}
},
{
"additionalProperties": false,
"properties": {"kilnGit": {"$id": "#/definitions/hudson.plugins.git.browser.KilnGit"}}
},
{
"additionalProperties": false,
"properties": {"gitWeb": {"$id": "#/definitions/hudson.plugins.git.browser.GitWeb"}}
},
{
"additionalProperties": false,
"properties": {"gitBlitRepositoryBrowser": {"$id": "#/definitions/hudson.plugins.git.browser.GitBlitRepositoryBrowser"}}
},
{
"additionalProperties": false,
"properties": {"gitoriousWeb": {"$id": "#/definitions/hudson.plugins.git.browser.GitoriousWeb"}}
},
{
"additionalProperties": false,
"properties": {"tfs2013": {"$id": "#/definitions/hudson.plugins.git.browser.TFS2013GitRepositoryBrowser"}}
},
{
"additionalProperties": false,
"properties": {"rhodeCodeLegacy": {"$id": "#/definitions/hudson.plugins.mercurial.browser.RhodeCodeLegacy"}}
},
{
"additionalProperties": false,
"properties": {"phabricator": {"$id": "#/definitions/hudson.plugins.git.browser.Phabricator"}}
},
{
"additionalProperties": false,
"properties": {"googleCode": {"$id": "#/definitions/hudson.plugins.mercurial.browser.GoogleCode"}}
},
{
"additionalProperties": false,
"properties": {"gogsGit": {"$id": "#/definitions/hudson.plugins.git.browser.GogsGit"}}
},
{
"additionalProperties": false,
"properties": {"fisheye": {"$id": "#/definitions/hudson.plugins.git.browser.FisheyeGitRepositoryBrowser"}}
},
{
"additionalProperties": false,
"properties": {"kallithea": {"$id": "#/definitions/hudson.plugins.mercurial.browser.Kallithea"}}
},
{
"additionalProperties": false,
"properties": {"githubWeb": {"$id": "#/definitions/hudson.plugins.git.browser.GithubWeb"}}
},
{
"additionalProperties": false,
"properties": {"hgWeb": {"$id": "#/definitions/hudson.plugins.mercurial.browser.HgWeb"}}
},
{
"additionalProperties": false,
"properties": {"assemblaWeb": {"$id": "#/definitions/hudson.plugins.git.browser.AssemblaWeb"}}
},
{
"additionalProperties": false,
"properties": {"stash": {"$id": "#/definitions/hudson.plugins.git.browser.Stash"}}
}
],
"type": "object"
},
"bitBucket": {
"additionalProperties": false,
"type": "object",
"properties": {"url": {
"description": "Specify the root URL serving this repository (such as this).",
"type": "string"
}}
},
"buildStepOperation": {
"additionalProperties": false,
"type": "object",
"properties": {"enabled": {
"description": "",
"type": "boolean"
}}
},
"redmineWeb": {
"additionalProperties": false,
"type": "object",
"properties": {"repoUrl": {
"description": "Specify the root URL serving this repository (such as http://SERVER/PATH/projects/PROJECT/repository).",
"type": "string"
}}
},
"sCMSourceTrait": {
"oneOf": [
{
"additionalProperties": false,
"properties": {"gitLFSPullTrait": {"$id": "#/definitions/jenkins.plugins.git.traits.GitLFSPullTrait"}}
},
{
"additionalProperties": false,
"properties": {"ignoreOnPushNotificationTrait": {"$id": "#/definitions/jenkins.plugins.git.traits.IgnoreOnPushNotificationTrait"}}
},
{
"additionalProperties": false,
"properties": {"cleanMercurial": {"$id": "#/definitions/hudson.plugins.mercurial.traits.CleanMercurialSCMSourceTrait"}}
},
{
"additionalProperties": false,
"properties": {"bitbucketWebhookRegistration": {"$id": "#/definitions/com.cloudbees.jenkins.plugins.bitbucket.WebhookRegistrationTrait"}}
},
{
"additionalProperties": false,
"properties": {"cloneOptionTrait": {"$id": "#/definitions/jenkins.plugins.git.traits.CloneOptionTrait"}}
},
{
"additionalProperties": false,
"properties": {"submoduleOptionTrait": {"$id": "#/definitions/jenkins.plugins.git.traits.SubmoduleOptionTrait"}}
},
{
"additionalProperties": false,
"properties": {"gitTool": {"$id": "#/definitions/jenkins.plugins.git.traits.GitToolSCMSourceTrait"}}
},
{
"additionalProperties": false,
"properties": {"wipeWorkspaceTrait": {"$id": "#/definitions/jenkins.plugins.git.traits.WipeWorkspaceTrait"}}
},
{
"additionalProperties": false,
"properties": {"localBranchTrait": {"$id": "#/definitions/jenkins.plugins.git.traits.LocalBranchTrait"}}
},
{
"additionalProperties": false,
"properties": {"bitbucketPullRequestDiscovery": {"$id": "#/definitions/com.cloudbees.jenkins.plugins.bitbucket.OriginPullRequestDiscoveryTrait"}}
},
{
"additionalProperties": false,
"properties": {"cleanBeforeCheckoutTrait": {"$id": "#/definitions/jenkins.plugins.git.traits.CleanBeforeCheckoutTrait"}}
},
{
"additionalProperties": false,
"properties": {"gitHubBranchDiscovery": {"$id": "#/definitions/org.jenkinsci.plugins.github_branch_source.BranchDiscoveryTrait"}}
},
{
"additionalProperties": false,
"properties": {"bitbucketPublicRepoPullRequestFilter": {"$id": "#/definitions/com.cloudbees.jenkins.plugins.bitbucket.PublicRepoPullRequestFilterTrait"}}
},
{
"additionalProperties": false,
"properties": {"discoverOtherRefsTrait": {"$id": "#/definitions/jenkins.plugins.git.traits.DiscoverOtherRefsTrait"}}
},
{
"additionalProperties": false,
"properties": {"bitbucketTagDiscovery": {"$id": "#/definitions/com.cloudbees.jenkins.plugins.bitbucket.TagDiscoveryTrait"}}
},
{
"additionalProperties": false,
"properties": {"bitbucketBranchDiscovery": {"$id": "#/definitions/com.cloudbees.jenkins.plugins.bitbucket.BranchDiscoveryTrait"}}
},
{
"additionalProperties": false,
"properties": {"cleanAfterCheckoutTrait": {"$id": "#/definitions/jenkins.plugins.git.traits.CleanAfterCheckoutTrait"}}
},
{
"additionalProperties": false,
"properties": {"pruneStaleBranchTrait": {"$id": "#/definitions/jenkins.plugins.git.traits.PruneStaleBranchTrait"}}
},
{
"additionalProperties": false,
"properties": {"bitbucketWebhookConfiguration": {"$id": "#/definitions/com.cloudbees.jenkins.plugins.bitbucket.WebhookConfigurationTrait"}}