|
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 | + "Clean", |
| 28 | + "Compile", |
| 29 | + "CopyToLocalPackages", |
| 30 | + "CopyUnsignedNugetToLocalPackages", |
| 31 | + "Default", |
| 32 | + "Merge", |
| 33 | + "PackSignedMergedClientNuget", |
| 34 | + "PackSignedNormalClientNuget", |
| 35 | + "PackUnsignedNonMergedClientNuget", |
| 36 | + "PackUnsignedNormalClientNuget", |
| 37 | + "Restore", |
| 38 | + "Test", |
| 39 | + "TestClientNugetPackage" |
| 40 | + ] |
| 41 | + }, |
| 42 | + "Verbosity": { |
| 43 | + "type": "string", |
| 44 | + "description": "", |
| 45 | + "enum": [ |
| 46 | + "Verbose", |
| 47 | + "Normal", |
| 48 | + "Minimal", |
| 49 | + "Quiet" |
| 50 | + ] |
| 51 | + }, |
| 52 | + "NukeBuild": { |
8 | 53 | "properties": {
|
9 |
| - "AutoDetectBranch": { |
10 |
| - "type": "boolean", |
11 |
| - "description": "Whether to auto-detect the branch name - this is okay for a local build, but should not be used under CI" |
12 |
| - }, |
13 |
| - "AzureKeyVaultAppId": { |
14 |
| - "type": "string" |
15 |
| - }, |
16 |
| - "AzureKeyVaultAppSecret": { |
17 |
| - "type": "string", |
18 |
| - "default": "Secrets must be entered via 'nuke :secrets [profile]'" |
19 |
| - }, |
20 |
| - "AzureKeyVaultCertificateName": { |
21 |
| - "type": "string" |
22 |
| - }, |
23 |
| - "AzureKeyVaultTenantId": { |
24 |
| - "type": "string" |
25 |
| - }, |
26 |
| - "AzureKeyVaultUrl": { |
27 |
| - "type": "string" |
28 |
| - }, |
29 |
| - "Configuration": { |
30 |
| - "type": "string" |
31 |
| - }, |
32 | 54 | "Continue": {
|
33 | 55 | "type": "boolean",
|
34 | 56 | "description": "Indicates to continue a previously failed build attempt"
|
|
38 | 60 | "description": "Shows the help text for this build assembly"
|
39 | 61 | },
|
40 | 62 | "Host": {
|
41 |
| - "type": "string", |
42 | 63 | "description": "Host for execution. Default is 'automatic'",
|
43 |
| - "enum": [ |
44 |
| - "AppVeyor", |
45 |
| - "AzurePipelines", |
46 |
| - "Bamboo", |
47 |
| - "Bitbucket", |
48 |
| - "Bitrise", |
49 |
| - "GitHubActions", |
50 |
| - "GitLab", |
51 |
| - "Jenkins", |
52 |
| - "Rider", |
53 |
| - "SpaceAutomation", |
54 |
| - "TeamCity", |
55 |
| - "Terminal", |
56 |
| - "TravisCI", |
57 |
| - "VisualStudio", |
58 |
| - "VSCode" |
59 |
| - ] |
| 64 | + "$ref": "#/definitions/Host" |
60 | 65 | },
|
61 | 66 | "NoLogo": {
|
62 | 67 | "type": "boolean",
|
63 | 68 | "description": "Disables displaying the NUKE logo"
|
64 | 69 | },
|
65 |
| - "OCTOVERSION_CurrentBranch": { |
66 |
| - "type": "string", |
67 |
| - "description": "Branch name for OctoVersion to use to calculate the version number. Can be set via the environment variable OCTOVERSION_CurrentBranch" |
68 |
| - }, |
69 | 70 | "Partition": {
|
70 | 71 | "type": "string",
|
71 | 72 | "description": "Partition to use on CI"
|
|
85 | 86 | "type": "string",
|
86 | 87 | "description": "Root directory during build execution"
|
87 | 88 | },
|
88 |
| - "SigningCertificatePassword": { |
89 |
| - "type": "string" |
90 |
| - }, |
91 |
| - "SigningCertificatePath": { |
92 |
| - "type": "string" |
93 |
| - }, |
94 | 89 | "Skip": {
|
95 | 90 | "type": "array",
|
96 | 91 | "description": "List of targets to be skipped. Empty list skips all dependencies",
|
97 | 92 | "items": {
|
98 |
| - "type": "string", |
99 |
| - "enum": [ |
100 |
| - "Clean", |
101 |
| - "Compile", |
102 |
| - "CopyToLocalPackages", |
103 |
| - "CopyUnsignedNugetToLocalPackages", |
104 |
| - "Default", |
105 |
| - "Merge", |
106 |
| - "PackSignedMergedClientNuget", |
107 |
| - "PackSignedNormalClientNuget", |
108 |
| - "PackUnsignedNonMergedClientNuget", |
109 |
| - "PackUnsignedNormalClientNuget", |
110 |
| - "Restore", |
111 |
| - "Test", |
112 |
| - "TestClientNugetPackage" |
113 |
| - ] |
| 93 | + "$ref": "#/definitions/ExecutableTarget" |
114 | 94 | }
|
115 | 95 | },
|
116 | 96 | "Target": {
|
117 | 97 | "type": "array",
|
118 | 98 | "description": "List of targets to be invoked. Default is '{default_target}'",
|
119 | 99 | "items": {
|
120 |
| - "type": "string", |
121 |
| - "enum": [ |
122 |
| - "Clean", |
123 |
| - "Compile", |
124 |
| - "CopyToLocalPackages", |
125 |
| - "CopyUnsignedNugetToLocalPackages", |
126 |
| - "Default", |
127 |
| - "Merge", |
128 |
| - "PackSignedMergedClientNuget", |
129 |
| - "PackSignedNormalClientNuget", |
130 |
| - "PackUnsignedNonMergedClientNuget", |
131 |
| - "PackUnsignedNormalClientNuget", |
132 |
| - "Restore", |
133 |
| - "Test", |
134 |
| - "TestClientNugetPackage" |
135 |
| - ] |
| 100 | + "$ref": "#/definitions/ExecutableTarget" |
136 | 101 | }
|
137 | 102 | },
|
138 | 103 | "Verbosity": {
|
139 |
| - "type": "string", |
140 | 104 | "description": "Logging verbosity during build execution. Default is 'Normal'",
|
141 |
| - "enum": [ |
142 |
| - "Minimal", |
143 |
| - "Normal", |
144 |
| - "Quiet", |
145 |
| - "Verbose" |
146 |
| - ] |
| 105 | + "$ref": "#/definitions/Verbosity" |
| 106 | + } |
| 107 | + } |
| 108 | + } |
| 109 | + }, |
| 110 | + "allOf": [ |
| 111 | + { |
| 112 | + "properties": { |
| 113 | + "AutoDetectBranch": { |
| 114 | + "type": "boolean", |
| 115 | + "description": "Whether to auto-detect the branch name - this is okay for a local build, but should not be used under CI" |
| 116 | + }, |
| 117 | + "AzureKeyVaultAppId": { |
| 118 | + "type": "string" |
| 119 | + }, |
| 120 | + "AzureKeyVaultAppSecret": { |
| 121 | + "type": "string", |
| 122 | + "default": "Secrets must be entered via 'nuke :secrets [profile]'" |
| 123 | + }, |
| 124 | + "AzureKeyVaultCertificateName": { |
| 125 | + "type": "string" |
| 126 | + }, |
| 127 | + "AzureKeyVaultTenantId": { |
| 128 | + "type": "string" |
| 129 | + }, |
| 130 | + "AzureKeyVaultUrl": { |
| 131 | + "type": "string" |
| 132 | + }, |
| 133 | + "Configuration": { |
| 134 | + "type": "string" |
| 135 | + }, |
| 136 | + "OCTOVERSION_CurrentBranch": { |
| 137 | + "type": "string", |
| 138 | + "description": "Branch name for OctoVersion to use to calculate the version number. Can be set via the environment variable OCTOVERSION_CurrentBranch" |
| 139 | + }, |
| 140 | + "SigningCertificatePassword": { |
| 141 | + "type": "string" |
| 142 | + }, |
| 143 | + "SigningCertificatePath": { |
| 144 | + "type": "string" |
147 | 145 | }
|
148 | 146 | }
|
| 147 | + }, |
| 148 | + { |
| 149 | + "$ref": "#/definitions/NukeBuild" |
149 | 150 | }
|
150 |
| - } |
| 151 | + ] |
151 | 152 | }
|
0 commit comments