Skip to content

Commit b9966be

Browse files
committed
Update NUKE
1 parent a8ec756 commit b9966be

File tree

2 files changed

+72
-60
lines changed

2 files changed

+72
-60
lines changed

.nuke/build.schema.json

Lines changed: 67 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,50 @@
11
{
22
"$schema": "http://json-schema.org/draft-04/schema#",
3-
"$ref": "#/definitions/build",
4-
"title": "Build Schema",
53
"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+
"CleanArtifacts",
29+
"Compile",
30+
"Pack",
31+
"Publish",
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": {
847
"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-
},
1748
"Continue": {
1849
"type": "boolean",
1950
"description": "Indicates to continue a previously failed build attempt"
@@ -23,25 +54,8 @@
2354
"description": "Shows the help text for this build assembly"
2455
},
2556
"Host": {
26-
"type": "string",
2757
"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-
]
58+
"$ref": "#/definitions/Host"
4559
},
4660
"NoLogo": {
4761
"type": "boolean",
@@ -70,49 +84,42 @@
7084
"type": "array",
7185
"description": "List of targets to be skipped. Empty list skips all dependencies",
7286
"items": {
73-
"type": "string",
74-
"enum": [
75-
"Clean",
76-
"CleanArtifacts",
77-
"Compile",
78-
"Pack",
79-
"Publish",
80-
"Restore",
81-
"Test"
82-
]
87+
"$ref": "#/definitions/ExecutableTarget"
8388
}
8489
},
85-
"Solution": {
86-
"type": "string",
87-
"description": "Path to a solution file that is automatically loaded"
88-
},
8990
"Target": {
9091
"type": "array",
9192
"description": "List of targets to be invoked. Default is '{default_target}'",
9293
"items": {
93-
"type": "string",
94-
"enum": [
95-
"Clean",
96-
"CleanArtifacts",
97-
"Compile",
98-
"Pack",
99-
"Publish",
100-
"Restore",
101-
"Test"
102-
]
94+
"$ref": "#/definitions/ExecutableTarget"
10395
}
10496
},
10597
"Verbosity": {
106-
"type": "string",
10798
"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+
"type": "string",
109+
"description": "Configuration to build - Default is 'Debug' (local) or 'Release' (server)",
108110
"enum": [
109-
"Minimal",
110-
"Normal",
111-
"Quiet",
112-
"Verbose"
111+
"Debug",
112+
"Release"
113113
]
114+
},
115+
"Solution": {
116+
"type": "string",
117+
"description": "Path to a solution file that is automatically loaded"
114118
}
115119
}
120+
},
121+
{
122+
"$ref": "#/definitions/NukeBuild"
116123
}
117-
}
124+
]
118125
}

global.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"sdk": {
3+
"version": "9.0.101"
4+
}
5+
}

0 commit comments

Comments
 (0)