|
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": { |
| 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 | + "IssConfiguration": { |
7 | 25 | "type": "object", |
| 26 | + "description": "IssConfiguration", |
8 | 27 | "properties": { |
9 | | - "ApplicationType": { |
10 | | - "type": "string" |
| 28 | + "Title": { |
| 29 | + "type": [ |
| 30 | + "null", |
| 31 | + "string" |
| 32 | + ], |
| 33 | + "description": "Title (default null)" |
| 34 | + }, |
| 35 | + "Image": { |
| 36 | + "type": [ |
| 37 | + "null", |
| 38 | + "string" |
| 39 | + ], |
| 40 | + "description": "Image (default IMAGE)" |
| 41 | + }, |
| 42 | + "ImageSmall": { |
| 43 | + "type": [ |
| 44 | + "null", |
| 45 | + "string" |
| 46 | + ], |
| 47 | + "description": "Small Image (default IMAGESMALL)" |
| 48 | + }, |
| 49 | + "Icon": { |
| 50 | + "type": [ |
| 51 | + "null", |
| 52 | + "string" |
| 53 | + ], |
| 54 | + "description": "Icon (default ICON)" |
| 55 | + }, |
| 56 | + "Licence": { |
| 57 | + "type": [ |
| 58 | + "null", |
| 59 | + "string" |
| 60 | + ], |
| 61 | + "description": "Licence (default LICENSE)" |
| 62 | + }, |
| 63 | + "Language": { |
| 64 | + "description": "Language (default IssLanguage)", |
| 65 | + "oneOf": [ |
| 66 | + { |
| 67 | + "type": "null" |
| 68 | + }, |
| 69 | + { |
| 70 | + "$ref": "#/definitions/IssLanguage" |
| 71 | + } |
| 72 | + ] |
11 | 73 | }, |
| 74 | + "IssLanguageLicences": { |
| 75 | + "type": [ |
| 76 | + "array", |
| 77 | + "null" |
| 78 | + ], |
| 79 | + "description": "IssLanguages", |
| 80 | + "items": { |
| 81 | + "$ref": "#/definitions/IssLanguageLicence" |
| 82 | + } |
| 83 | + } |
| 84 | + } |
| 85 | + }, |
| 86 | + "IssLanguage": { |
| 87 | + "type": "object", |
| 88 | + "description": "IssLanguage", |
| 89 | + "properties": { |
| 90 | + "Name": { |
| 91 | + "type": [ |
| 92 | + "null", |
| 93 | + "string" |
| 94 | + ], |
| 95 | + "description": "Name (default \"en\")" |
| 96 | + }, |
| 97 | + "MessagesFile": { |
| 98 | + "type": [ |
| 99 | + "null", |
| 100 | + "string" |
| 101 | + ], |
| 102 | + "description": "MessagesFile (default \"compiler:Default.isl\")" |
| 103 | + } |
| 104 | + } |
| 105 | + }, |
| 106 | + "IssLanguageLicence": { |
| 107 | + "type": "object", |
| 108 | + "description": "IssLanguageLicence", |
| 109 | + "properties": { |
| 110 | + "Name": { |
| 111 | + "type": [ |
| 112 | + "null", |
| 113 | + "string" |
| 114 | + ], |
| 115 | + "description": "Name (default \"en\")" |
| 116 | + }, |
| 117 | + "MessagesFile": { |
| 118 | + "type": [ |
| 119 | + "null", |
| 120 | + "string" |
| 121 | + ], |
| 122 | + "description": "MessagesFile (default \"compiler:Default.isl\")" |
| 123 | + }, |
| 124 | + "Licence": { |
| 125 | + "type": [ |
| 126 | + "null", |
| 127 | + "string" |
| 128 | + ], |
| 129 | + "description": "Licence (default LICENSE)" |
| 130 | + } |
| 131 | + } |
| 132 | + }, |
| 133 | + "ExecutableTarget": { |
| 134 | + "type": "string", |
| 135 | + "enum": [ |
| 136 | + "Build", |
| 137 | + "Clean", |
| 138 | + "Compile", |
| 139 | + "GitPreRelease", |
| 140 | + "GitRelease", |
| 141 | + "PackageBuilder", |
| 142 | + "Release", |
| 143 | + "Sign", |
| 144 | + "Test" |
| 145 | + ] |
| 146 | + }, |
| 147 | + "Verbosity": { |
| 148 | + "type": "string", |
| 149 | + "description": "", |
| 150 | + "enum": [ |
| 151 | + "Verbose", |
| 152 | + "Normal", |
| 153 | + "Minimal", |
| 154 | + "Quiet" |
| 155 | + ] |
| 156 | + }, |
| 157 | + "NukeBuild": { |
| 158 | + "properties": { |
12 | 159 | "Continue": { |
13 | 160 | "type": "boolean", |
14 | 161 | "description": "Indicates to continue a previously failed build attempt" |
15 | 162 | }, |
16 | | - "Folder": { |
17 | | - "type": "string" |
18 | | - }, |
19 | | - "GitHubToken": { |
20 | | - "type": "string", |
21 | | - "default": "Secrets must be entered via 'nuke :secrets [profile]'" |
22 | | - }, |
23 | 163 | "Help": { |
24 | 164 | "type": "boolean", |
25 | 165 | "description": "Shows the help text for this build assembly" |
26 | 166 | }, |
27 | 167 | "Host": { |
28 | | - "type": "string", |
29 | 168 | "description": "Host for execution. Default is 'automatic'", |
30 | | - "enum": [ |
31 | | - "AppVeyor", |
32 | | - "AzurePipelines", |
33 | | - "Bamboo", |
34 | | - "Bitbucket", |
35 | | - "Bitrise", |
36 | | - "GitHubActions", |
37 | | - "GitLab", |
38 | | - "Jenkins", |
39 | | - "Rider", |
40 | | - "SpaceAutomation", |
41 | | - "TeamCity", |
42 | | - "Terminal", |
43 | | - "TravisCI", |
44 | | - "VisualStudio", |
45 | | - "VSCode" |
46 | | - ] |
| 169 | + "$ref": "#/definitions/Host" |
| 170 | + }, |
| 171 | + "NoLogo": { |
| 172 | + "type": "boolean", |
| 173 | + "description": "Disables displaying the NUKE logo" |
| 174 | + }, |
| 175 | + "Partition": { |
| 176 | + "type": "string", |
| 177 | + "description": "Partition to use on CI" |
| 178 | + }, |
| 179 | + "Plan": { |
| 180 | + "type": "boolean", |
| 181 | + "description": "Shows the execution plan (HTML)" |
| 182 | + }, |
| 183 | + "Profile": { |
| 184 | + "type": "array", |
| 185 | + "description": "Defines the profiles to load", |
| 186 | + "items": { |
| 187 | + "type": "string" |
| 188 | + } |
| 189 | + }, |
| 190 | + "Root": { |
| 191 | + "type": "string", |
| 192 | + "description": "Root directory during build execution" |
| 193 | + }, |
| 194 | + "Skip": { |
| 195 | + "type": "array", |
| 196 | + "description": "List of targets to be skipped. Empty list skips all dependencies", |
| 197 | + "items": { |
| 198 | + "$ref": "#/definitions/ExecutableTarget" |
| 199 | + } |
| 200 | + }, |
| 201 | + "Target": { |
| 202 | + "type": "array", |
| 203 | + "description": "List of targets to be invoked. Default is '{default_target}'", |
| 204 | + "items": { |
| 205 | + "$ref": "#/definitions/ExecutableTarget" |
| 206 | + } |
| 207 | + }, |
| 208 | + "Verbosity": { |
| 209 | + "description": "Logging verbosity during build execution. Default is 'Normal'", |
| 210 | + "$ref": "#/definitions/Verbosity" |
| 211 | + } |
| 212 | + } |
| 213 | + } |
| 214 | + }, |
| 215 | + "allOf": [ |
| 216 | + { |
| 217 | + "properties": { |
| 218 | + "ApplicationType": { |
| 219 | + "type": "string" |
| 220 | + }, |
| 221 | + "EnableForkedRepository": { |
| 222 | + "type": "boolean" |
| 223 | + }, |
| 224 | + "Folder": { |
| 225 | + "type": "string" |
| 226 | + }, |
| 227 | + "GitHubToken": { |
| 228 | + "type": "string", |
| 229 | + "default": "Secrets must be entered via 'nuke :secrets [profile]'" |
47 | 230 | }, |
48 | 231 | "InstallationFiles": { |
49 | 232 | "type": "string" |
50 | 233 | }, |
51 | 234 | "IssConfiguration": { |
52 | | - "type": "string" |
| 235 | + "$ref": "#/definitions/IssConfiguration" |
53 | 236 | }, |
54 | 237 | "MainName": { |
55 | 238 | "type": "string" |
|
63 | 246 | "NewVersions": { |
64 | 247 | "type": "boolean" |
65 | 248 | }, |
66 | | - "NoLogo": { |
67 | | - "type": "boolean", |
68 | | - "description": "Disables displaying the NUKE logo" |
69 | | - }, |
70 | | - "Partition": { |
71 | | - "type": "string", |
72 | | - "description": "Partition to use on CI" |
73 | | - }, |
74 | | - "Plan": { |
75 | | - "type": "boolean", |
76 | | - "description": "Shows the execution plan (HTML)" |
77 | | - }, |
78 | | - "Profile": { |
| 249 | + "PreReleaseFilter": { |
79 | 250 | "type": "array", |
80 | | - "description": "Defines the profiles to load", |
81 | 251 | "items": { |
82 | 252 | "type": "string" |
83 | 253 | } |
|
103 | 273 | "ReleasePackageBuilder": { |
104 | 274 | "type": "boolean" |
105 | 275 | }, |
106 | | - "Root": { |
107 | | - "type": "string", |
108 | | - "description": "Root directory during build execution" |
109 | | - }, |
110 | 276 | "SignFile": { |
111 | 277 | "type": "string", |
112 | 278 | "default": "Secrets must be entered via 'nuke :secrets [profile]'" |
|
115 | 281 | "type": "string", |
116 | 282 | "default": "Secrets must be entered via 'nuke :secrets [profile]'" |
117 | 283 | }, |
118 | | - "Skip": { |
119 | | - "type": "array", |
120 | | - "description": "List of targets to be skipped. Empty list skips all dependencies", |
121 | | - "items": { |
122 | | - "type": "string", |
123 | | - "enum": [ |
124 | | - "Build", |
125 | | - "Clean", |
126 | | - "Compile", |
127 | | - "GitRelease", |
128 | | - "PackageBuilder", |
129 | | - "Release", |
130 | | - "Sign", |
131 | | - "Test" |
132 | | - ] |
133 | | - } |
134 | | - }, |
135 | 284 | "Solution": { |
136 | 285 | "type": "string", |
137 | 286 | "description": "Path to a solution file that is automatically loaded" |
138 | 287 | }, |
139 | | - "Target": { |
140 | | - "type": "array", |
141 | | - "description": "List of targets to be invoked. Default is '{default_target}'", |
142 | | - "items": { |
143 | | - "type": "string", |
144 | | - "enum": [ |
145 | | - "Build", |
146 | | - "Clean", |
147 | | - "Compile", |
148 | | - "GitRelease", |
149 | | - "PackageBuilder", |
150 | | - "Release", |
151 | | - "Sign", |
152 | | - "Test" |
153 | | - ] |
154 | | - } |
155 | | - }, |
156 | 288 | "TestBuildStopWhenFailed": { |
157 | 289 | "type": "boolean" |
158 | 290 | }, |
|
167 | 299 | }, |
168 | 300 | "VendorId": { |
169 | 301 | "type": "string" |
170 | | - }, |
171 | | - "Verbosity": { |
172 | | - "type": "string", |
173 | | - "description": "Logging verbosity during build execution. Default is 'Normal'", |
174 | | - "enum": [ |
175 | | - "Minimal", |
176 | | - "Normal", |
177 | | - "Quiet", |
178 | | - "Verbose" |
179 | | - ] |
180 | 302 | } |
181 | 303 | } |
| 304 | + }, |
| 305 | + { |
| 306 | + "$ref": "#/definitions/NukeBuild" |
182 | 307 | } |
183 | | - } |
| 308 | + ] |
184 | 309 | } |
0 commit comments