|
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 | + "AddGithubRelease", |
| 28 | + "Benchmarks", |
| 29 | + "Changelog", |
| 30 | + "Clean", |
| 31 | + "Coldfix", |
| 32 | + "Compile", |
| 33 | + "Feature", |
| 34 | + "Hotfix", |
| 35 | + "MutationTests", |
| 36 | + "Pack", |
| 37 | + "Publish", |
| 38 | + "Release", |
| 39 | + "Restore", |
| 40 | + "UnitTests" |
| 41 | + ] |
| 42 | + }, |
| 43 | + "Verbosity": { |
| 44 | + "type": "string", |
| 45 | + "description": "", |
| 46 | + "enum": [ |
| 47 | + "Verbose", |
| 48 | + "Normal", |
| 49 | + "Minimal", |
| 50 | + "Quiet" |
| 51 | + ] |
| 52 | + }, |
| 53 | + "NukeBuild": { |
| 54 | + "properties": { |
| 55 | + "Continue": { |
| 56 | + "type": "boolean", |
| 57 | + "description": "Indicates to continue a previously failed build attempt" |
| 58 | + }, |
| 59 | + "Help": { |
| 60 | + "type": "boolean", |
| 61 | + "description": "Shows the help text for this build assembly" |
| 62 | + }, |
| 63 | + "Host": { |
| 64 | + "description": "Host for execution. Default is 'automatic'", |
| 65 | + "$ref": "#/definitions/Host" |
| 66 | + }, |
| 67 | + "NoLogo": { |
| 68 | + "type": "boolean", |
| 69 | + "description": "Disables displaying the NUKE logo" |
| 70 | + }, |
| 71 | + "Partition": { |
| 72 | + "type": "string", |
| 73 | + "description": "Partition to use on CI" |
| 74 | + }, |
| 75 | + "Plan": { |
| 76 | + "type": "boolean", |
| 77 | + "description": "Shows the execution plan (HTML)" |
| 78 | + }, |
| 79 | + "Profile": { |
| 80 | + "type": "array", |
| 81 | + "description": "Defines the profiles to load", |
| 82 | + "items": { |
| 83 | + "type": "string" |
| 84 | + } |
| 85 | + }, |
| 86 | + "Root": { |
| 87 | + "type": "string", |
| 88 | + "description": "Root directory during build execution" |
| 89 | + }, |
| 90 | + "Skip": { |
| 91 | + "type": "array", |
| 92 | + "description": "List of targets to be skipped. Empty list skips all dependencies", |
| 93 | + "items": { |
| 94 | + "$ref": "#/definitions/ExecutableTarget" |
| 95 | + } |
| 96 | + }, |
| 97 | + "Target": { |
| 98 | + "type": "array", |
| 99 | + "description": "List of targets to be invoked. Default is '{default_target}'", |
| 100 | + "items": { |
| 101 | + "$ref": "#/definitions/ExecutableTarget" |
| 102 | + } |
| 103 | + }, |
| 104 | + "Verbosity": { |
| 105 | + "description": "Logging verbosity during build execution. Default is 'Normal'", |
| 106 | + "$ref": "#/definitions/Verbosity" |
| 107 | + } |
| 108 | + } |
| 109 | + } |
| 110 | + }, |
| 111 | + "allOf": [ |
| 112 | + { |
8 | 113 | "properties": { |
9 | 114 | "AutoStash": { |
10 | 115 | "type": "boolean", |
|
21 | 126 | }, |
22 | 127 | "Configuration": { |
23 | 128 | "type": "string", |
24 | | - "description": "Defines the configuratoin to use when building the application", |
| 129 | + "description": "Defines the configuration to use when building the application", |
25 | 130 | "enum": [ |
26 | 131 | "Debug", |
27 | 132 | "Release" |
28 | 133 | ] |
29 | 134 | }, |
30 | | - "Continue": { |
31 | | - "type": "boolean", |
32 | | - "description": "Indicates to continue a previously failed build attempt" |
33 | | - }, |
34 | 135 | "DeleteLocalOnSuccess": { |
35 | 136 | "type": "boolean", |
36 | 137 | "description": "Should the local branch be deleted after the pull request was created successfully ?" |
|
48 | 149 | "description": "Token used to create a new release in GitHub", |
49 | 150 | "default": "Secrets must be entered via 'nuke :secrets [profile]'" |
50 | 151 | }, |
51 | | - "Help": { |
52 | | - "type": "boolean", |
53 | | - "description": "Shows the help text for this build assembly" |
54 | | - }, |
55 | | - "Host": { |
56 | | - "type": "string", |
57 | | - "description": "Host for execution. Default is 'automatic'", |
58 | | - "enum": [ |
59 | | - "AppVeyor", |
60 | | - "AzurePipelines", |
61 | | - "Bamboo", |
62 | | - "Bitbucket", |
63 | | - "Bitrise", |
64 | | - "GitHubActions", |
65 | | - "GitLab", |
66 | | - "Jenkins", |
67 | | - "Rider", |
68 | | - "SpaceAutomation", |
69 | | - "TeamCity", |
70 | | - "Terminal", |
71 | | - "TravisCI", |
72 | | - "VisualStudio", |
73 | | - "VSCode" |
74 | | - ] |
75 | | - }, |
76 | 152 | "IgnoreFailedSources": { |
77 | 153 | "type": "boolean", |
78 | 154 | "description": "Ignore unreachable sources during Restore" |
|
81 | 157 | "type": "array", |
82 | 158 | "description": "Issues that will be closed once the pull request is completed", |
83 | 159 | "items": { |
84 | | - "type": "string" |
| 160 | + "type": "integer" |
85 | 161 | } |
86 | 162 | }, |
87 | 163 | "Major": { |
|
92 | 168 | "type": "string", |
93 | 169 | "description": "Name of the branch to create" |
94 | 170 | }, |
95 | | - "NoLogo": { |
96 | | - "type": "boolean", |
97 | | - "description": "Disables displaying the NUKE logo" |
98 | | - }, |
99 | 171 | "NugetApiKey": { |
100 | 172 | "type": "string", |
101 | 173 | "description": "API key used to publish artifacts to Nuget.org", |
102 | 174 | "default": "Secrets must be entered via 'nuke :secrets [profile]'" |
103 | 175 | }, |
104 | | - "Partition": { |
105 | | - "type": "string", |
106 | | - "description": "Partition to use on CI" |
107 | | - }, |
108 | | - "Plan": { |
| 176 | + "SkipConfirmation": { |
109 | 177 | "type": "boolean", |
110 | | - "description": "Shows the execution plan (HTML)" |
111 | | - }, |
112 | | - "Profile": { |
113 | | - "type": "array", |
114 | | - "description": "Defines the profiles to load", |
115 | | - "items": { |
116 | | - "type": "string" |
117 | | - } |
118 | | - }, |
119 | | - "Root": { |
120 | | - "type": "string", |
121 | | - "description": "Root directory during build execution" |
122 | | - }, |
123 | | - "Skip": { |
124 | | - "type": "array", |
125 | | - "description": "List of targets to be skipped. Empty list skips all dependencies", |
126 | | - "items": { |
127 | | - "type": "string", |
128 | | - "enum": [ |
129 | | - "AddGithubRelease", |
130 | | - "Benchmarks", |
131 | | - "Changelog", |
132 | | - "Clean", |
133 | | - "Coldfix", |
134 | | - "Compile", |
135 | | - "Feature", |
136 | | - "Hotfix", |
137 | | - "MutationTests", |
138 | | - "Pack", |
139 | | - "Publish", |
140 | | - "Release", |
141 | | - "ReportCoverage", |
142 | | - "Restore", |
143 | | - "UnitTests" |
144 | | - ] |
145 | | - } |
| 178 | + "description": "Set to true to not ask any confirmation to the end user (default: false)" |
146 | 179 | }, |
147 | 180 | "Solution": { |
148 | 181 | "type": "string", |
|
153 | 186 | "description": "API KEY used to submit mutation report to a stryker dashboard", |
154 | 187 | "default": "Secrets must be entered via 'nuke :secrets [profile]'" |
155 | 188 | }, |
156 | | - "Target": { |
157 | | - "type": "array", |
158 | | - "description": "List of targets to be invoked. Default is '{default_target}'", |
159 | | - "items": { |
160 | | - "type": "string", |
161 | | - "enum": [ |
162 | | - "AddGithubRelease", |
163 | | - "Benchmarks", |
164 | | - "Changelog", |
165 | | - "Clean", |
166 | | - "Coldfix", |
167 | | - "Compile", |
168 | | - "Feature", |
169 | | - "Hotfix", |
170 | | - "MutationTests", |
171 | | - "Pack", |
172 | | - "Publish", |
173 | | - "Release", |
174 | | - "ReportCoverage", |
175 | | - "Restore", |
176 | | - "UnitTests" |
177 | | - ] |
178 | | - } |
179 | | - }, |
180 | 189 | "Title": { |
181 | 190 | "type": "string", |
182 | 191 | "description": "Title that will be used when creating a PR" |
183 | | - }, |
184 | | - "Verbosity": { |
185 | | - "type": "string", |
186 | | - "description": "Logging verbosity during build execution. Default is 'Normal'", |
187 | | - "enum": [ |
188 | | - "Minimal", |
189 | | - "Normal", |
190 | | - "Quiet", |
191 | | - "Verbose" |
192 | | - ] |
193 | 192 | } |
194 | 193 | } |
| 194 | + }, |
| 195 | + { |
| 196 | + "$ref": "#/definitions/NukeBuild" |
195 | 197 | } |
196 | | - } |
| 198 | + ] |
197 | 199 | } |
0 commit comments