|
1 | 1 | { |
2 | 2 | "$schema": "http://json-schema.org/draft-04/schema#", |
| 3 | + "$ref": "#/definitions/build", |
| 4 | + "title": "Build Schema", |
3 | 5 | "definitions": { |
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 | | - "Pack", |
30 | | - "Publish", |
31 | | - "PublishToGitHubNuget", |
32 | | - "Restore", |
33 | | - "Test" |
34 | | - ] |
35 | | - }, |
36 | | - "Verbosity": { |
37 | | - "type": "string", |
38 | | - "description": "", |
39 | | - "enum": [ |
40 | | - "Verbose", |
41 | | - "Normal", |
42 | | - "Minimal", |
43 | | - "Quiet" |
44 | | - ] |
45 | | - }, |
46 | | - "NukeBuild": { |
| 6 | + "build": { |
| 7 | + "type": "object", |
47 | 8 | "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 | + }, |
48 | 17 | "Continue": { |
49 | 18 | "type": "boolean", |
50 | 19 | "description": "Indicates to continue a previously failed build attempt" |
|
54 | 23 | "description": "Shows the help text for this build assembly" |
55 | 24 | }, |
56 | 25 | "Host": { |
| 26 | + "type": "string", |
57 | 27 | "description": "Host for execution. Default is 'automatic'", |
58 | | - "$ref": "#/definitions/Host" |
| 28 | + "enum": [ |
| 29 | + "AppVeyor", |
| 30 | + "AzurePipelines", |
| 31 | + "Bamboo", |
| 32 | + "Bitbucket", |
| 33 | + "Bitrise", |
| 34 | + "GitHubActions", |
| 35 | + "GitLab", |
| 36 | + "Jenkins", |
| 37 | + "Rider", |
| 38 | + "SpaceAutomation", |
| 39 | + "TeamCity", |
| 40 | + "Terminal", |
| 41 | + "TravisCI", |
| 42 | + "VisualStudio", |
| 43 | + "VSCode" |
| 44 | + ] |
59 | 45 | }, |
60 | 46 | "NoLogo": { |
61 | 47 | "type": "boolean", |
62 | 48 | "description": "Disables displaying the NUKE logo" |
63 | 49 | }, |
| 50 | + "NuGetApiKey": { |
| 51 | + "type": "string", |
| 52 | + "default": "Secrets must be entered via 'nuke :secrets [profile]'" |
| 53 | + }, |
64 | 54 | "Partition": { |
65 | 55 | "type": "string", |
66 | 56 | "description": "Partition to use on CI" |
|
84 | 74 | "type": "array", |
85 | 75 | "description": "List of targets to be skipped. Empty list skips all dependencies", |
86 | 76 | "items": { |
87 | | - "$ref": "#/definitions/ExecutableTarget" |
| 77 | + "type": "string", |
| 78 | + "enum": [ |
| 79 | + "Clean", |
| 80 | + "Compile", |
| 81 | + "Pack", |
| 82 | + "Publish", |
| 83 | + "PublishToGitHubNuget", |
| 84 | + "Restore", |
| 85 | + "Test" |
| 86 | + ] |
88 | 87 | } |
89 | 88 | }, |
| 89 | + "Solution": { |
| 90 | + "type": "string", |
| 91 | + "description": "Path to a solution file that is automatically loaded" |
| 92 | + }, |
90 | 93 | "Target": { |
91 | 94 | "type": "array", |
92 | 95 | "description": "List of targets to be invoked. Default is '{default_target}'", |
93 | 96 | "items": { |
94 | | - "$ref": "#/definitions/ExecutableTarget" |
| 97 | + "type": "string", |
| 98 | + "enum": [ |
| 99 | + "Clean", |
| 100 | + "Compile", |
| 101 | + "Pack", |
| 102 | + "Publish", |
| 103 | + "PublishToGitHubNuget", |
| 104 | + "Restore", |
| 105 | + "Test" |
| 106 | + ] |
95 | 107 | } |
96 | 108 | }, |
97 | 109 | "Verbosity": { |
98 | | - "description": "Logging verbosity during build execution. Default is 'Normal'", |
99 | | - "$ref": "#/definitions/Verbosity" |
100 | | - } |
101 | | - } |
102 | | - } |
103 | | - }, |
104 | | - "allOf": [ |
105 | | - { |
106 | | - "properties": { |
107 | | - "Configuration": { |
108 | 110 | "type": "string", |
109 | | - "description": "Configuration to build - Default is 'Debug' (local) or 'Release' (server)", |
| 111 | + "description": "Logging verbosity during build execution. Default is 'Normal'", |
110 | 112 | "enum": [ |
111 | | - "Debug", |
112 | | - "Release" |
| 113 | + "Minimal", |
| 114 | + "Normal", |
| 115 | + "Quiet", |
| 116 | + "Verbose" |
113 | 117 | ] |
114 | | - }, |
115 | | - "NuGetApiKey": { |
116 | | - "type": "string", |
117 | | - "default": "Secrets must be entered via 'nuke :secrets [profile]'" |
118 | | - }, |
119 | | - "Solution": { |
120 | | - "type": "string", |
121 | | - "description": "Path to a solution file that is automatically loaded" |
122 | 118 | } |
123 | 119 | } |
124 | | - }, |
125 | | - { |
126 | | - "$ref": "#/definitions/NukeBuild" |
127 | 120 | } |
128 | | - ] |
| 121 | + } |
129 | 122 | } |
0 commit comments