|
1 | 1 | { |
2 | 2 | "$schema": "http://json-schema.org/draft-04/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 | | - "ElasticProvider": { |
13 | | - "type": "string" |
14 | | - }, |
15 | | - "MongoProvider": { |
16 | | - "type": "string" |
17 | | - }, |
18 | | - "MsSqlProvider": { |
19 | | - "type": "string" |
20 | | - }, |
21 | | - "MySqlProvider": { |
22 | | - "type": "string" |
23 | | - }, |
24 | | - "NugetApiKey": { |
25 | | - "type": "string", |
26 | | - "default": "Secrets must be entered via 'nuke :secrets [profile]'" |
27 | | - }, |
28 | | - "PostgresProvider": { |
29 | | - "type": "string" |
30 | | - }, |
31 | | - "Solution": { |
32 | | - "type": "string", |
33 | | - "description": "Path to a solution file that is automatically loaded" |
34 | | - }, |
35 | | - "SonarToken": { |
36 | | - "type": "string", |
37 | | - "default": "Secrets must be entered via 'nuke :secrets [profile]'" |
38 | | - }, |
39 | | - "SonarTokenUi": { |
40 | | - "type": "string", |
41 | | - "default": "Secrets must be entered via 'nuke :secrets [profile]'" |
42 | | - }, |
43 | | - "Ui": { |
44 | | - "type": "string" |
45 | | - } |
46 | | - }, |
| 3 | + "$ref": "#/definitions/build", |
| 4 | + "title": "Build Schema", |
47 | 5 | "definitions": { |
48 | | - "Host": { |
49 | | - "type": "string", |
50 | | - "enum": [ |
51 | | - "AppVeyor", |
52 | | - "AzurePipelines", |
53 | | - "Bamboo", |
54 | | - "Bitbucket", |
55 | | - "Bitrise", |
56 | | - "GitHubActions", |
57 | | - "GitLab", |
58 | | - "Jenkins", |
59 | | - "Rider", |
60 | | - "SpaceAutomation", |
61 | | - "TeamCity", |
62 | | - "Terminal", |
63 | | - "TravisCI", |
64 | | - "VisualStudio", |
65 | | - "VSCode" |
66 | | - ] |
67 | | - }, |
68 | | - "ExecutableTarget": { |
69 | | - "type": "string", |
70 | | - "enum": [ |
71 | | - "Backend_Clean", |
72 | | - "Backend_Compile", |
73 | | - "Backend_Report_Ci", |
74 | | - "Backend_Restore", |
75 | | - "Backend_SonarScan_End", |
76 | | - "Backend_SonarScan_Start", |
77 | | - "Backend_Test", |
78 | | - "Backend_Test_Ci", |
79 | | - "Clean", |
80 | | - "Frontend_Build", |
81 | | - "Frontend_Clean", |
82 | | - "Frontend_Restore", |
83 | | - "Frontend_Tests", |
84 | | - "Frontend_Tests_Ci", |
85 | | - "Pack", |
86 | | - "Publish" |
87 | | - ] |
88 | | - }, |
89 | | - "Verbosity": { |
90 | | - "type": "string", |
91 | | - "description": "", |
92 | | - "enum": [ |
93 | | - "Verbose", |
94 | | - "Normal", |
95 | | - "Minimal", |
96 | | - "Quiet" |
97 | | - ] |
98 | | - }, |
99 | | - "NukeBuild": { |
| 6 | + "build": { |
| 7 | + "type": "object", |
100 | 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 | + }, |
101 | 17 | "Continue": { |
102 | 18 | "type": "boolean", |
103 | 19 | "description": "Indicates to continue a previously failed build attempt" |
104 | 20 | }, |
| 21 | + "ElasticProvider": { |
| 22 | + "type": "string" |
| 23 | + }, |
105 | 24 | "Help": { |
106 | 25 | "type": "boolean", |
107 | 26 | "description": "Shows the help text for this build assembly" |
108 | 27 | }, |
109 | 28 | "Host": { |
| 29 | + "type": "string", |
110 | 30 | "description": "Host for execution. Default is 'automatic'", |
111 | | - "$ref": "#/definitions/Host" |
| 31 | + "enum": [ |
| 32 | + "AppVeyor", |
| 33 | + "AzurePipelines", |
| 34 | + "Bamboo", |
| 35 | + "Bitbucket", |
| 36 | + "Bitrise", |
| 37 | + "GitHubActions", |
| 38 | + "GitLab", |
| 39 | + "Jenkins", |
| 40 | + "Rider", |
| 41 | + "SpaceAutomation", |
| 42 | + "TeamCity", |
| 43 | + "Terminal", |
| 44 | + "TravisCI", |
| 45 | + "VisualStudio", |
| 46 | + "VSCode" |
| 47 | + ] |
| 48 | + }, |
| 49 | + "MongoProvider": { |
| 50 | + "type": "string" |
| 51 | + }, |
| 52 | + "MsSqlProvider": { |
| 53 | + "type": "string" |
| 54 | + }, |
| 55 | + "MySqlProvider": { |
| 56 | + "type": "string" |
112 | 57 | }, |
113 | 58 | "NoLogo": { |
114 | 59 | "type": "boolean", |
115 | 60 | "description": "Disables displaying the NUKE logo" |
116 | 61 | }, |
| 62 | + "NugetApiKey": { |
| 63 | + "type": "string", |
| 64 | + "default": "Secrets must be entered via 'nuke :secrets [profile]'" |
| 65 | + }, |
117 | 66 | "Partition": { |
118 | 67 | "type": "string", |
119 | 68 | "description": "Partition to use on CI" |
|
122 | 71 | "type": "boolean", |
123 | 72 | "description": "Shows the execution plan (HTML)" |
124 | 73 | }, |
| 74 | + "PostgresProvider": { |
| 75 | + "type": "string" |
| 76 | + }, |
125 | 77 | "Profile": { |
126 | 78 | "type": "array", |
127 | 79 | "description": "Defines the profiles to load", |
|
137 | 89 | "type": "array", |
138 | 90 | "description": "List of targets to be skipped. Empty list skips all dependencies", |
139 | 91 | "items": { |
140 | | - "$ref": "#/definitions/ExecutableTarget" |
| 92 | + "type": "string", |
| 93 | + "enum": [ |
| 94 | + "Backend_Clean", |
| 95 | + "Backend_Compile", |
| 96 | + "Backend_Report_Ci", |
| 97 | + "Backend_Restore", |
| 98 | + "Backend_SonarScan_End", |
| 99 | + "Backend_SonarScan_Start", |
| 100 | + "Backend_Test", |
| 101 | + "Backend_Test_Ci", |
| 102 | + "Clean", |
| 103 | + "Frontend_Build", |
| 104 | + "Frontend_Clean", |
| 105 | + "Frontend_Restore", |
| 106 | + "Frontend_Tests", |
| 107 | + "Frontend_Tests_Ci", |
| 108 | + "Pack", |
| 109 | + "Publish" |
| 110 | + ] |
141 | 111 | } |
142 | 112 | }, |
| 113 | + "Solution": { |
| 114 | + "type": "string", |
| 115 | + "description": "Path to a solution file that is automatically loaded" |
| 116 | + }, |
| 117 | + "SonarToken": { |
| 118 | + "type": "string", |
| 119 | + "default": "Secrets must be entered via 'nuke :secrets [profile]'" |
| 120 | + }, |
| 121 | + "SonarTokenUi": { |
| 122 | + "type": "string", |
| 123 | + "default": "Secrets must be entered via 'nuke :secrets [profile]'" |
| 124 | + }, |
143 | 125 | "Target": { |
144 | 126 | "type": "array", |
145 | 127 | "description": "List of targets to be invoked. Default is '{default_target}'", |
146 | 128 | "items": { |
147 | | - "$ref": "#/definitions/ExecutableTarget" |
| 129 | + "type": "string", |
| 130 | + "enum": [ |
| 131 | + "Backend_Clean", |
| 132 | + "Backend_Compile", |
| 133 | + "Backend_Report_Ci", |
| 134 | + "Backend_Restore", |
| 135 | + "Backend_SonarScan_End", |
| 136 | + "Backend_SonarScan_Start", |
| 137 | + "Backend_Test", |
| 138 | + "Backend_Test_Ci", |
| 139 | + "Clean", |
| 140 | + "Frontend_Build", |
| 141 | + "Frontend_Clean", |
| 142 | + "Frontend_Restore", |
| 143 | + "Frontend_Tests", |
| 144 | + "Frontend_Tests_Ci", |
| 145 | + "Pack", |
| 146 | + "Publish" |
| 147 | + ] |
148 | 148 | } |
149 | 149 | }, |
| 150 | + "Ui": { |
| 151 | + "type": "string" |
| 152 | + }, |
150 | 153 | "Verbosity": { |
| 154 | + "type": "string", |
151 | 155 | "description": "Logging verbosity during build execution. Default is 'Normal'", |
152 | | - "$ref": "#/definitions/Verbosity" |
| 156 | + "enum": [ |
| 157 | + "Minimal", |
| 158 | + "Normal", |
| 159 | + "Quiet", |
| 160 | + "Verbose" |
| 161 | + ] |
153 | 162 | } |
154 | 163 | } |
155 | 164 | } |
156 | | - }, |
157 | | - "$ref": "#/definitions/NukeBuild" |
| 165 | + } |
158 | 166 | } |
0 commit comments