|
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 | + "Clean", |
| 28 | + "Compile", |
| 29 | + "Cover", |
| 30 | + "Pack", |
| 31 | + "Prepare", |
| 32 | + "Publish", |
| 33 | + "PublishGitHub", |
| 34 | + "PublishNuGet", |
| 35 | + "Restore", |
| 36 | + "Test", |
| 37 | + "Verify" |
| 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 | | - "Configuration": { |
10 | | - "type": "string", |
11 | | - "description": "Configuration to build - Default is 'Debug' (local) or 'Release' (server)", |
12 | | - "enum": [ |
13 | | - "Debug", |
14 | | - "Release" |
15 | | - ] |
16 | | - }, |
17 | 52 | "Continue": { |
18 | 53 | "type": "boolean", |
19 | 54 | "description": "Indicates to continue a previously failed build attempt" |
20 | 55 | }, |
21 | | - "GitHubToken": { |
22 | | - "type": "string", |
23 | | - "description": "The access token for making calls to the GitHub API" |
24 | | - }, |
25 | 56 | "Help": { |
26 | 57 | "type": "boolean", |
27 | 58 | "description": "Shows the help text for this build assembly" |
28 | 59 | }, |
29 | 60 | "Host": { |
30 | | - "type": "string", |
31 | 61 | "description": "Host for execution. Default is 'automatic'", |
32 | | - "enum": [ |
33 | | - "AppVeyor", |
34 | | - "AzurePipelines", |
35 | | - "Bamboo", |
36 | | - "Bitbucket", |
37 | | - "Bitrise", |
38 | | - "GitHubActions", |
39 | | - "GitLab", |
40 | | - "Jenkins", |
41 | | - "Rider", |
42 | | - "SpaceAutomation", |
43 | | - "TeamCity", |
44 | | - "Terminal", |
45 | | - "TravisCI", |
46 | | - "VisualStudio", |
47 | | - "VSCode" |
48 | | - ] |
| 62 | + "$ref": "#/definitions/Host" |
49 | 63 | }, |
50 | 64 | "NoLogo": { |
51 | 65 | "type": "boolean", |
52 | 66 | "description": "Disables displaying the NUKE logo" |
53 | 67 | }, |
54 | | - "NuGetApiKey": { |
55 | | - "type": "string", |
56 | | - "description": "The API key for publishing NuGet packages" |
57 | | - }, |
58 | 68 | "Partition": { |
59 | 69 | "type": "string", |
60 | 70 | "description": "Partition to use on CI" |
|
78 | 88 | "type": "array", |
79 | 89 | "description": "List of targets to be skipped. Empty list skips all dependencies", |
80 | 90 | "items": { |
81 | | - "type": "string", |
82 | | - "enum": [ |
83 | | - "Clean", |
84 | | - "Compile", |
85 | | - "Cover", |
86 | | - "Pack", |
87 | | - "Prepare", |
88 | | - "Publish", |
89 | | - "PublishGitHub", |
90 | | - "PublishNuGet", |
91 | | - "Restore", |
92 | | - "Test", |
93 | | - "Verify" |
94 | | - ] |
| 91 | + "$ref": "#/definitions/ExecutableTarget" |
95 | 92 | } |
96 | 93 | }, |
97 | | - "Solution": { |
98 | | - "type": "string", |
99 | | - "description": "Path to a solution file that is automatically loaded" |
100 | | - }, |
101 | 94 | "Target": { |
102 | 95 | "type": "array", |
103 | 96 | "description": "List of targets to be invoked. Default is '{default_target}'", |
104 | 97 | "items": { |
105 | | - "type": "string", |
106 | | - "enum": [ |
107 | | - "Clean", |
108 | | - "Compile", |
109 | | - "Cover", |
110 | | - "Pack", |
111 | | - "Prepare", |
112 | | - "Publish", |
113 | | - "PublishGitHub", |
114 | | - "PublishNuGet", |
115 | | - "Restore", |
116 | | - "Test", |
117 | | - "Verify" |
118 | | - ] |
| 98 | + "$ref": "#/definitions/ExecutableTarget" |
119 | 99 | } |
120 | 100 | }, |
121 | 101 | "Verbosity": { |
122 | | - "type": "string", |
123 | 102 | "description": "Logging verbosity during build execution. Default is 'Normal'", |
| 103 | + "$ref": "#/definitions/Verbosity" |
| 104 | + } |
| 105 | + } |
| 106 | + } |
| 107 | + }, |
| 108 | + "allOf": [ |
| 109 | + { |
| 110 | + "properties": { |
| 111 | + "Configuration": { |
| 112 | + "type": "string", |
| 113 | + "description": "Configuration to build - Default is 'Debug' (local) or 'Release' (server)", |
124 | 114 | "enum": [ |
125 | | - "Minimal", |
126 | | - "Normal", |
127 | | - "Quiet", |
128 | | - "Verbose" |
| 115 | + "Debug", |
| 116 | + "Release" |
129 | 117 | ] |
130 | 118 | }, |
| 119 | + "GitHubToken": { |
| 120 | + "type": "string", |
| 121 | + "description": "The access token for making calls to the GitHub API" |
| 122 | + }, |
| 123 | + "NuGetApiKey": { |
| 124 | + "type": "string", |
| 125 | + "description": "The API key for publishing NuGet packages" |
| 126 | + }, |
| 127 | + "Solution": { |
| 128 | + "type": "string", |
| 129 | + "description": "Path to a solution file that is automatically loaded" |
| 130 | + }, |
131 | 131 | "Version": { |
132 | 132 | "type": "string", |
133 | 133 | "description": "Version of the NuGet package to build" |
134 | 134 | } |
135 | 135 | } |
| 136 | + }, |
| 137 | + { |
| 138 | + "$ref": "#/definitions/NukeBuild" |
136 | 139 | } |
137 | | - } |
| 140 | + ] |
138 | 141 | } |
0 commit comments