|
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 | + "Build", |
| 28 | + "Clean", |
| 29 | + "Compile", |
| 30 | + "CompileExample", |
| 31 | + "GitPreRelease", |
| 32 | + "GitRelease", |
| 33 | + "Pack", |
| 34 | + "PrePack", |
| 35 | + "Release", |
| 36 | + "ShowGitVersion", |
| 37 | + "Sign", |
| 38 | + "Test" |
| 39 | + ] |
| 40 | + }, |
| 41 | + "Verbosity": { |
| 42 | + "type": "string", |
| 43 | + "description": "", |
| 44 | + "enum": [ |
| 45 | + "Verbose", |
| 46 | + "Normal", |
| 47 | + "Minimal", |
| 48 | + "Quiet" |
| 49 | + ] |
| 50 | + }, |
| 51 | + "NukeBuild": { |
8 | 52 | "properties": {
|
9 | 53 | "Continue": {
|
10 | 54 | "type": "boolean",
|
11 | 55 | "description": "Indicates to continue a previously failed build attempt"
|
12 | 56 | },
|
13 |
| - "Folder": { |
14 |
| - "type": "string" |
15 |
| - }, |
16 |
| - "GitHubToken": { |
17 |
| - "type": "string", |
18 |
| - "default": "Secrets must be entered via 'nuke :secrets [profile]'" |
19 |
| - }, |
20 | 57 | "Help": {
|
21 | 58 | "type": "boolean",
|
22 | 59 | "description": "Shows the help text for this build assembly"
|
23 | 60 | },
|
24 | 61 | "Host": {
|
25 |
| - "type": "string", |
26 | 62 | "description": "Host for execution. Default is 'automatic'",
|
27 |
| - "enum": [ |
28 |
| - "AppVeyor", |
29 |
| - "AzurePipelines", |
30 |
| - "Bamboo", |
31 |
| - "Bitbucket", |
32 |
| - "Bitrise", |
33 |
| - "GitHubActions", |
34 |
| - "GitLab", |
35 |
| - "Jenkins", |
36 |
| - "Rider", |
37 |
| - "SpaceAutomation", |
38 |
| - "TeamCity", |
39 |
| - "Terminal", |
40 |
| - "TravisCI", |
41 |
| - "VisualStudio", |
42 |
| - "VSCode" |
43 |
| - ] |
44 |
| - }, |
45 |
| - "MainName": { |
46 |
| - "type": "string" |
47 |
| - }, |
48 |
| - "Name": { |
49 |
| - "type": "string" |
| 63 | + "$ref": "#/definitions/Host" |
50 | 64 | },
|
51 | 65 | "NoLogo": {
|
52 | 66 | "type": "boolean",
|
53 | 67 | "description": "Disables displaying the NUKE logo"
|
54 | 68 | },
|
55 |
| - "NugetApiKey": { |
56 |
| - "type": "string", |
57 |
| - "default": "Secrets must be entered via 'nuke :secrets [profile]'" |
58 |
| - }, |
59 |
| - "NugetApiUrl": { |
60 |
| - "type": "string", |
61 |
| - "default": "Secrets must be entered via 'nuke :secrets [profile]'" |
62 |
| - }, |
63 | 69 | "Partition": {
|
64 | 70 | "type": "string",
|
65 | 71 | "description": "Partition to use on CI"
|
|
68 | 74 | "type": "boolean",
|
69 | 75 | "description": "Shows the execution plan (HTML)"
|
70 | 76 | },
|
71 |
| - "PreReleaseFilter": { |
| 77 | + "Profile": { |
72 | 78 | "type": "array",
|
| 79 | + "description": "Defines the profiles to load", |
73 | 80 | "items": {
|
74 | 81 | "type": "string"
|
75 | 82 | }
|
76 | 83 | },
|
77 |
| - "Profile": { |
| 84 | + "Root": { |
| 85 | + "type": "string", |
| 86 | + "description": "Root directory during build execution" |
| 87 | + }, |
| 88 | + "Skip": { |
| 89 | + "type": "array", |
| 90 | + "description": "List of targets to be skipped. Empty list skips all dependencies", |
| 91 | + "items": { |
| 92 | + "$ref": "#/definitions/ExecutableTarget" |
| 93 | + } |
| 94 | + }, |
| 95 | + "Target": { |
| 96 | + "type": "array", |
| 97 | + "description": "List of targets to be invoked. Default is '{default_target}'", |
| 98 | + "items": { |
| 99 | + "$ref": "#/definitions/ExecutableTarget" |
| 100 | + } |
| 101 | + }, |
| 102 | + "Verbosity": { |
| 103 | + "description": "Logging verbosity during build execution. Default is 'Normal'", |
| 104 | + "$ref": "#/definitions/Verbosity" |
| 105 | + } |
| 106 | + } |
| 107 | + } |
| 108 | + }, |
| 109 | + "allOf": [ |
| 110 | + { |
| 111 | + "properties": { |
| 112 | + "Folder": { |
| 113 | + "type": "string" |
| 114 | + }, |
| 115 | + "GitHubToken": { |
| 116 | + "type": "string", |
| 117 | + "default": "Secrets must be entered via 'nuke :secrets [profile]'" |
| 118 | + }, |
| 119 | + "MainName": { |
| 120 | + "type": "string" |
| 121 | + }, |
| 122 | + "Name": { |
| 123 | + "type": "string" |
| 124 | + }, |
| 125 | + "NugetApiKey": { |
| 126 | + "type": "string", |
| 127 | + "default": "Secrets must be entered via 'nuke :secrets [profile]'" |
| 128 | + }, |
| 129 | + "NugetApiUrl": { |
| 130 | + "type": "string", |
| 131 | + "default": "Secrets must be entered via 'nuke :secrets [profile]'" |
| 132 | + }, |
| 133 | + "PreReleaseFilter": { |
78 | 134 | "type": "array",
|
79 |
| - "description": "Defines the profiles to load", |
80 | 135 | "items": {
|
81 | 136 | "type": "string"
|
82 | 137 | }
|
|
90 | 145 | "ReleaseNameVersion": {
|
91 | 146 | "type": "boolean"
|
92 | 147 | },
|
93 |
| - "Root": { |
94 |
| - "type": "string", |
95 |
| - "description": "Root directory during build execution" |
96 |
| - }, |
97 | 148 | "SignFile": {
|
98 | 149 | "type": "string",
|
99 | 150 | "default": "Secrets must be entered via 'nuke :secrets [profile]'"
|
|
102 | 153 | "type": "string",
|
103 | 154 | "default": "Secrets must be entered via 'nuke :secrets [profile]'"
|
104 | 155 | },
|
105 |
| - "Skip": { |
106 |
| - "type": "array", |
107 |
| - "description": "List of targets to be skipped. Empty list skips all dependencies", |
108 |
| - "items": { |
109 |
| - "type": "string", |
110 |
| - "enum": [ |
111 |
| - "Build", |
112 |
| - "Clean", |
113 |
| - "Compile", |
114 |
| - "CompileExample", |
115 |
| - "GitPreRelease", |
116 |
| - "GitRelease", |
117 |
| - "Pack", |
118 |
| - "PrePack", |
119 |
| - "Release", |
120 |
| - "ShowGitVersion", |
121 |
| - "Sign", |
122 |
| - "Test" |
123 |
| - ] |
124 |
| - } |
125 |
| - }, |
126 | 156 | "Solution": {
|
127 | 157 | "type": "string",
|
128 | 158 | "description": "Path to a solution file that is automatically loaded"
|
129 | 159 | },
|
130 |
| - "Target": { |
131 |
| - "type": "array", |
132 |
| - "description": "List of targets to be invoked. Default is '{default_target}'", |
133 |
| - "items": { |
134 |
| - "type": "string", |
135 |
| - "enum": [ |
136 |
| - "Build", |
137 |
| - "Clean", |
138 |
| - "Compile", |
139 |
| - "CompileExample", |
140 |
| - "GitPreRelease", |
141 |
| - "GitRelease", |
142 |
| - "Pack", |
143 |
| - "PrePack", |
144 |
| - "Release", |
145 |
| - "ShowGitVersion", |
146 |
| - "Sign", |
147 |
| - "Test" |
148 |
| - ] |
149 |
| - } |
150 |
| - }, |
151 | 160 | "TestProjectName": {
|
152 | 161 | "type": "string"
|
153 | 162 | },
|
|
156 | 165 | },
|
157 | 166 | "UnlistNuget": {
|
158 | 167 | "type": "boolean"
|
159 |
| - }, |
160 |
| - "Verbosity": { |
161 |
| - "type": "string", |
162 |
| - "description": "Logging verbosity during build execution. Default is 'Normal'", |
163 |
| - "enum": [ |
164 |
| - "Minimal", |
165 |
| - "Normal", |
166 |
| - "Quiet", |
167 |
| - "Verbose" |
168 |
| - ] |
169 | 168 | }
|
170 | 169 | }
|
| 170 | + }, |
| 171 | + { |
| 172 | + "$ref": "#/definitions/NukeBuild" |
171 | 173 | }
|
172 |
| - } |
| 174 | + ] |
173 | 175 | }
|
0 commit comments