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