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