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