|
1 | 1 | { |
2 | 2 | "$schema": "http://json-schema.org/draft-04/schema#", |
3 | | - "$ref": "#/definitions/build", |
4 | | - "title": "Build Schema", |
5 | 3 | "definitions": { |
6 | | - "build": { |
7 | | - "type": "object", |
| 4 | + "Host": { |
| 5 | + "type": "string", |
| 6 | + "enum": [ |
| 7 | + "AppVeyor", |
| 8 | + "AzurePipelines", |
| 9 | + "Bamboo", |
| 10 | + "Bitbucket", |
| 11 | + "Bitrise", |
| 12 | + "GitHubActions", |
| 13 | + "GitLab", |
| 14 | + "Jenkins", |
| 15 | + "Rider", |
| 16 | + "SpaceAutomation", |
| 17 | + "TeamCity", |
| 18 | + "Terminal", |
| 19 | + "TravisCI", |
| 20 | + "VisualStudio", |
| 21 | + "VSCode" |
| 22 | + ] |
| 23 | + }, |
| 24 | + "ExecutableTarget": { |
| 25 | + "type": "string", |
| 26 | + "enum": [ |
| 27 | + "ApiChecks", |
| 28 | + "CalculateNugetVersion", |
| 29 | + "Clean", |
| 30 | + "CodeCoverage", |
| 31 | + "Compile", |
| 32 | + "Pack", |
| 33 | + "Push", |
| 34 | + "Restore", |
| 35 | + "UnitTests", |
| 36 | + "UnitTestsNetCore", |
| 37 | + "UnitTestsNetFramework" |
| 38 | + ] |
| 39 | + }, |
| 40 | + "Verbosity": { |
| 41 | + "type": "string", |
| 42 | + "description": "", |
| 43 | + "enum": [ |
| 44 | + "Verbose", |
| 45 | + "Normal", |
| 46 | + "Minimal", |
| 47 | + "Quiet" |
| 48 | + ] |
| 49 | + }, |
| 50 | + "NukeBuild": { |
8 | 51 | "properties": { |
9 | 52 | "Continue": { |
10 | 53 | "type": "boolean", |
11 | 54 | "description": "Indicates to continue a previously failed build attempt" |
12 | 55 | }, |
13 | | - "GenerateBinLog": { |
14 | | - "type": "boolean", |
15 | | - "description": "Use this parameter if you encounter build problems in any way, to generate a .binlog file which holds some useful information" |
16 | | - }, |
17 | 56 | "Help": { |
18 | 57 | "type": "boolean", |
19 | 58 | "description": "Shows the help text for this build assembly" |
20 | 59 | }, |
21 | 60 | "Host": { |
22 | | - "type": "string", |
23 | 61 | "description": "Host for execution. Default is 'automatic'", |
24 | | - "enum": [ |
25 | | - "AppVeyor", |
26 | | - "AzurePipelines", |
27 | | - "Bamboo", |
28 | | - "Bitbucket", |
29 | | - "Bitrise", |
30 | | - "GitHubActions", |
31 | | - "GitLab", |
32 | | - "Jenkins", |
33 | | - "Rider", |
34 | | - "SpaceAutomation", |
35 | | - "TeamCity", |
36 | | - "Terminal", |
37 | | - "TravisCI", |
38 | | - "VisualStudio", |
39 | | - "VSCode" |
40 | | - ] |
| 62 | + "$ref": "#/definitions/Host" |
41 | 63 | }, |
42 | 64 | "NoLogo": { |
43 | 65 | "type": "boolean", |
44 | 66 | "description": "Disables displaying the NUKE logo" |
45 | 67 | }, |
46 | | - "NuGetApiKey": { |
47 | | - "type": "string", |
48 | | - "description": "The key to push to Nuget", |
49 | | - "default": "Secrets must be entered via 'nuke :secrets [profile]'" |
50 | | - }, |
51 | 68 | "Partition": { |
52 | 69 | "type": "string", |
53 | 70 | "description": "Partition to use on CI" |
|
71 | 88 | "type": "array", |
72 | 89 | "description": "List of targets to be skipped. Empty list skips all dependencies", |
73 | 90 | "items": { |
74 | | - "type": "string", |
75 | | - "enum": [ |
76 | | - "ApiChecks", |
77 | | - "CalculateNugetVersion", |
78 | | - "Clean", |
79 | | - "CodeCoverage", |
80 | | - "Compile", |
81 | | - "Pack", |
82 | | - "Push", |
83 | | - "Restore", |
84 | | - "UnitTests", |
85 | | - "UnitTestsNetCore", |
86 | | - "UnitTestsNetFramework" |
87 | | - ] |
| 91 | + "$ref": "#/definitions/ExecutableTarget" |
88 | 92 | } |
89 | 93 | }, |
90 | | - "Solution": { |
91 | | - "type": "string", |
92 | | - "description": "Path to a solution file that is automatically loaded" |
93 | | - }, |
94 | 94 | "Target": { |
95 | 95 | "type": "array", |
96 | 96 | "description": "List of targets to be invoked. Default is '{default_target}'", |
97 | 97 | "items": { |
98 | | - "type": "string", |
99 | | - "enum": [ |
100 | | - "ApiChecks", |
101 | | - "CalculateNugetVersion", |
102 | | - "Clean", |
103 | | - "CodeCoverage", |
104 | | - "Compile", |
105 | | - "Pack", |
106 | | - "Push", |
107 | | - "Restore", |
108 | | - "UnitTests", |
109 | | - "UnitTestsNetCore", |
110 | | - "UnitTestsNetFramework" |
111 | | - ] |
| 98 | + "$ref": "#/definitions/ExecutableTarget" |
112 | 99 | } |
113 | 100 | }, |
114 | 101 | "Verbosity": { |
115 | | - "type": "string", |
116 | 102 | "description": "Logging verbosity during build execution. Default is 'Normal'", |
117 | | - "enum": [ |
118 | | - "Minimal", |
119 | | - "Normal", |
120 | | - "Quiet", |
121 | | - "Verbose" |
122 | | - ] |
| 103 | + "$ref": "#/definitions/Verbosity" |
| 104 | + } |
| 105 | + } |
| 106 | + } |
| 107 | + }, |
| 108 | + "allOf": [ |
| 109 | + { |
| 110 | + "properties": { |
| 111 | + "GenerateBinLog": { |
| 112 | + "type": [ |
| 113 | + "boolean", |
| 114 | + "null" |
| 115 | + ], |
| 116 | + "description": "Use this parameter if you encounter build problems in any way, to generate a .binlog file which holds some useful information" |
| 117 | + }, |
| 118 | + "NuGetApiKey": { |
| 119 | + "type": "string", |
| 120 | + "description": "The key to push to Nuget", |
| 121 | + "default": "Secrets must be entered via 'nuke :secrets [profile]'" |
| 122 | + }, |
| 123 | + "Solution": { |
| 124 | + "type": "string", |
| 125 | + "description": "Path to a solution file that is automatically loaded" |
123 | 126 | } |
124 | 127 | } |
| 128 | + }, |
| 129 | + { |
| 130 | + "$ref": "#/definitions/NukeBuild" |
125 | 131 | } |
126 | | - } |
| 132 | + ] |
127 | 133 | } |
0 commit comments