@schemastore/bxci.schema-2.x 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +12 -0
- package/index.d.ts +334 -0
- package/package.json +14 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Florian Imdahl. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE
|
package/README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Installation
|
|
2
|
+
> `npm install --save @schemastore/bxci.schema-2.x`
|
|
3
|
+
|
|
4
|
+
# Summary
|
|
5
|
+
This package contains type definitions for bxci.schema-2.x.
|
|
6
|
+
|
|
7
|
+
## Details
|
|
8
|
+
Files were exported from https://github.com/ffflorian/schemastore-updater/tree/main/schemas/bxci.schema-2.x.
|
|
9
|
+
|
|
10
|
+
## Additional Details
|
|
11
|
+
* Last updated: Sat, Dec 17, 2022, 12:06:04 GMT
|
|
12
|
+
* Dependencies: none
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/**
|
|
3
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Regular expression for validating branch names
|
|
10
|
+
*/
|
|
11
|
+
export type BranchPattern = string;
|
|
12
|
+
/**
|
|
13
|
+
* Release channel name
|
|
14
|
+
*/
|
|
15
|
+
export type ReleaseChannel = string;
|
|
16
|
+
/**
|
|
17
|
+
* Indicates on which branches the artifact will be published.
|
|
18
|
+
*/
|
|
19
|
+
export type ReleaseChannelBranch = string;
|
|
20
|
+
/**
|
|
21
|
+
* Package publish configuration.
|
|
22
|
+
*/
|
|
23
|
+
export type OutputPackagePublish = PackagePublishChannel[];
|
|
24
|
+
/**
|
|
25
|
+
* Docker publishing information. If not present, no images will be published
|
|
26
|
+
*/
|
|
27
|
+
export type OutputDockerPublish = DockerReleaseChannel[];
|
|
28
|
+
export type OutputHelmUpdatesProperties = {
|
|
29
|
+
/**
|
|
30
|
+
* Yaml property (full path) to be updated
|
|
31
|
+
*/
|
|
32
|
+
key: string;
|
|
33
|
+
/**
|
|
34
|
+
* Environment variable whose value will be used to update the property
|
|
35
|
+
*/
|
|
36
|
+
env?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Value to update the given property
|
|
39
|
+
*/
|
|
40
|
+
value?: string;
|
|
41
|
+
} & OutputHelmUpdatesProperties1;
|
|
42
|
+
export type OutputHelmUpdatesProperties1 =
|
|
43
|
+
| {
|
|
44
|
+
[k: string]: unknown;
|
|
45
|
+
}
|
|
46
|
+
| {
|
|
47
|
+
[k: string]: unknown;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Helm chart publishing configuration. If not present, no charts will be published
|
|
51
|
+
*/
|
|
52
|
+
export type OutputHelmPublish = HelmReleaseChannel[];
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* CI configuration for Amdocs Bill Experience projects
|
|
56
|
+
*/
|
|
57
|
+
export interface BxciSchema2 {
|
|
58
|
+
/**
|
|
59
|
+
* Project properties
|
|
60
|
+
*/
|
|
61
|
+
project: {
|
|
62
|
+
/**
|
|
63
|
+
* Project's name (used by Jenkins, Docker and Sonar)
|
|
64
|
+
*/
|
|
65
|
+
name?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Project type
|
|
68
|
+
*/
|
|
69
|
+
type?: "npm" | "maven" | "mvn";
|
|
70
|
+
/**
|
|
71
|
+
* ID of a managed maven or npm Jenkins file
|
|
72
|
+
*/
|
|
73
|
+
settings?: string;
|
|
74
|
+
};
|
|
75
|
+
config?: {
|
|
76
|
+
jenkins_runtime?: {
|
|
77
|
+
/**
|
|
78
|
+
* Specifies how to build the Docker container (from an existing image or from a local Dockerfile)
|
|
79
|
+
*/
|
|
80
|
+
docker: {
|
|
81
|
+
/**
|
|
82
|
+
* Prebuilt Docker image (has precedence over dockerfile)
|
|
83
|
+
*/
|
|
84
|
+
image?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Path to a local Dockerfile
|
|
87
|
+
*/
|
|
88
|
+
dockerfile?: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Describes on which branch names a build will be run
|
|
93
|
+
*/
|
|
94
|
+
branch?: {
|
|
95
|
+
branch_pattern?: BranchPattern;
|
|
96
|
+
/**
|
|
97
|
+
* Disables branch name validation
|
|
98
|
+
*/
|
|
99
|
+
disable_validation?: boolean;
|
|
100
|
+
};
|
|
101
|
+
build?: {
|
|
102
|
+
/**
|
|
103
|
+
* Whether Jenkins workspace should be cleaned after the build
|
|
104
|
+
*/
|
|
105
|
+
clean_workspace_after_run?: boolean;
|
|
106
|
+
checkmarx?: Checkmarx;
|
|
107
|
+
static_analysis?: Sonar;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Cache configuration for projects built inside Docker containers
|
|
111
|
+
*/
|
|
112
|
+
cache?: {
|
|
113
|
+
repository: BinaryRepository;
|
|
114
|
+
/**
|
|
115
|
+
* List of cache types
|
|
116
|
+
*/
|
|
117
|
+
items?: CacheItem[];
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Additional services required by the project or application.
|
|
122
|
+
*/
|
|
123
|
+
services?: ("Postgres" | "Postgis" | "Redis" | "Mssql" | "Mysql" | "Mongodb" | "Elasticsearch")[];
|
|
124
|
+
/**
|
|
125
|
+
* Custom environment variables to be added to the pipeline
|
|
126
|
+
*/
|
|
127
|
+
environment?: {
|
|
128
|
+
[k: string]: unknown;
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Jenkins environment variables that are passed to the Docker container
|
|
132
|
+
*/
|
|
133
|
+
jenkinsEnvironment?: string[];
|
|
134
|
+
/**
|
|
135
|
+
* Defines the stages and steps required to build the project.
|
|
136
|
+
*/
|
|
137
|
+
stages: {
|
|
138
|
+
[k: string]: Stage;
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Describes artifacts generated after all the stages have been run
|
|
142
|
+
*/
|
|
143
|
+
output?: {
|
|
144
|
+
package?: OutputPackage;
|
|
145
|
+
docker?: OutputDocker;
|
|
146
|
+
helm?: OutputHelm;
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* List of artifacts to archive (wildcards allowed). Check out https://www.jenkins.io/doc/pipeline/steps/core/#archiveartifacts-archive-the-artifacts
|
|
150
|
+
*/
|
|
151
|
+
archive?: unknown[];
|
|
152
|
+
/**
|
|
153
|
+
* Build timeout in seconds
|
|
154
|
+
*/
|
|
155
|
+
timeout?: number;
|
|
156
|
+
[k: string]: unknown;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Adds a Static Analysis stage for CheckMarx. See https://www.jenkins.io/doc/pipeline/steps/checkmarx/ for all the configuration options.
|
|
160
|
+
*/
|
|
161
|
+
export interface Checkmarx {
|
|
162
|
+
enabled?: boolean;
|
|
163
|
+
groupId?: string;
|
|
164
|
+
preset?: string;
|
|
165
|
+
projectName?: string;
|
|
166
|
+
/**
|
|
167
|
+
* Regular expression for validating branch names
|
|
168
|
+
*/
|
|
169
|
+
branch_pattern?: string;
|
|
170
|
+
useOwnServerCredentials?: boolean;
|
|
171
|
+
serverUrl?: string;
|
|
172
|
+
credentialsId?: string;
|
|
173
|
+
generatePdfReport?: boolean;
|
|
174
|
+
sourceEncoding?: string;
|
|
175
|
+
isProxy?: boolean;
|
|
176
|
+
waitForResultsEnabled?: boolean;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Adds a Static Analysis stage for Sonar.
|
|
180
|
+
*/
|
|
181
|
+
export interface Sonar {
|
|
182
|
+
enabled?: boolean;
|
|
183
|
+
/**
|
|
184
|
+
* Waits for analysis result and breaks the build when the project fails for some quality gates.
|
|
185
|
+
*/
|
|
186
|
+
breaks_build?: boolean;
|
|
187
|
+
/**
|
|
188
|
+
* Seconds to wait for the result of the quality gate. Only applies when breaks_build is set to true
|
|
189
|
+
*/
|
|
190
|
+
timeout?: number;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Binary repository details
|
|
194
|
+
*/
|
|
195
|
+
export interface BinaryRepository {
|
|
196
|
+
/**
|
|
197
|
+
* Repository URL
|
|
198
|
+
*/
|
|
199
|
+
address: string;
|
|
200
|
+
/**
|
|
201
|
+
* Jenkins credentials ID for connecting to this repository
|
|
202
|
+
*/
|
|
203
|
+
credentials: string;
|
|
204
|
+
}
|
|
205
|
+
export interface CacheItem {
|
|
206
|
+
/**
|
|
207
|
+
* Cache type
|
|
208
|
+
*/
|
|
209
|
+
type: "maven" | "npm";
|
|
210
|
+
/**
|
|
211
|
+
* Sets whether this cache type is enabled
|
|
212
|
+
*/
|
|
213
|
+
enabled: boolean;
|
|
214
|
+
/**
|
|
215
|
+
* Location of the cache in the Jenkins workspace
|
|
216
|
+
*/
|
|
217
|
+
source?: string;
|
|
218
|
+
/**
|
|
219
|
+
* Location of the cache directory inside the Docker container
|
|
220
|
+
*/
|
|
221
|
+
target?: string;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Stage name in the Jenkins pipeline
|
|
225
|
+
*
|
|
226
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
227
|
+
* via the `patternProperty` "^\w+( \w+)*$".
|
|
228
|
+
*/
|
|
229
|
+
export interface Stage {
|
|
230
|
+
/**
|
|
231
|
+
* List of steps to run
|
|
232
|
+
*/
|
|
233
|
+
steps: unknown[];
|
|
234
|
+
/**
|
|
235
|
+
* Condition that should be met to run this step
|
|
236
|
+
*/
|
|
237
|
+
when?: {
|
|
238
|
+
/**
|
|
239
|
+
* Specifies in which branches this stage will be executed
|
|
240
|
+
*/
|
|
241
|
+
branch?: string;
|
|
242
|
+
[k: string]: unknown;
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Configuration for publishing NPM or Maven packages
|
|
247
|
+
*/
|
|
248
|
+
export interface OutputPackage {
|
|
249
|
+
publish: OutputPackagePublish;
|
|
250
|
+
}
|
|
251
|
+
export interface PackagePublishChannel {
|
|
252
|
+
channel: ReleaseChannel;
|
|
253
|
+
branch: ReleaseChannelBranch;
|
|
254
|
+
/**
|
|
255
|
+
* NPM registry (env variable or registry URL)
|
|
256
|
+
*/
|
|
257
|
+
registry?: string;
|
|
258
|
+
/**
|
|
259
|
+
* Optional params for npm publish or mvn deploy command.
|
|
260
|
+
*/
|
|
261
|
+
params?: string;
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Configuration for generating a Docker image
|
|
265
|
+
*/
|
|
266
|
+
export interface OutputDocker {
|
|
267
|
+
/**
|
|
268
|
+
* Path to Dockerfile used to generate the docker image
|
|
269
|
+
*/
|
|
270
|
+
dockerfile: string;
|
|
271
|
+
/**
|
|
272
|
+
* Image name for the generated docker image. Cannot include tag. Tag will be automatically generated based on project version.
|
|
273
|
+
*/
|
|
274
|
+
image_name: string;
|
|
275
|
+
publish?: OutputDockerPublish;
|
|
276
|
+
vulnerability_scan?: VulnerabilityScan;
|
|
277
|
+
}
|
|
278
|
+
export interface DockerReleaseChannel {
|
|
279
|
+
channel: ReleaseChannel;
|
|
280
|
+
branch: ReleaseChannelBranch;
|
|
281
|
+
/**
|
|
282
|
+
* Docker registry. Must include protocol (http|https) and port
|
|
283
|
+
*/
|
|
284
|
+
registry: string;
|
|
285
|
+
/**
|
|
286
|
+
* Jenkins credentials ID for publishing into the specified Docker registry
|
|
287
|
+
*/
|
|
288
|
+
credentials: string;
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Configuration for running vulnerability scans on published Docker images
|
|
292
|
+
*/
|
|
293
|
+
export interface VulnerabilityScan {
|
|
294
|
+
/**
|
|
295
|
+
* Whether the vulnerability scan step should be run
|
|
296
|
+
*/
|
|
297
|
+
enabled?: boolean;
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Configuration for generating a Helm chart
|
|
301
|
+
*/
|
|
302
|
+
export interface OutputHelm {
|
|
303
|
+
/**
|
|
304
|
+
* Path to the folder with all required chart config files
|
|
305
|
+
*/
|
|
306
|
+
path: string;
|
|
307
|
+
/**
|
|
308
|
+
* Updates that must be done before packing Helm chart. It's a list of objects that specifies which updates must be done on which files
|
|
309
|
+
*/
|
|
310
|
+
updates: OutputHelmUpdates[];
|
|
311
|
+
publish: OutputHelmPublish;
|
|
312
|
+
}
|
|
313
|
+
export interface OutputHelmUpdates {
|
|
314
|
+
/**
|
|
315
|
+
* Name (including path from Helm object path) of the file to be updated. Only supports yaml files
|
|
316
|
+
*/
|
|
317
|
+
file: string;
|
|
318
|
+
/**
|
|
319
|
+
* A list of properties to update. It can be updated with a fixed value or environment variable
|
|
320
|
+
*/
|
|
321
|
+
properties: OutputHelmUpdatesProperties[];
|
|
322
|
+
}
|
|
323
|
+
export interface HelmReleaseChannel {
|
|
324
|
+
channel: ReleaseChannel;
|
|
325
|
+
branch: ReleaseChannelBranch;
|
|
326
|
+
/**
|
|
327
|
+
* Helm chart repository. Must include protocol, host, port (if needed) and path
|
|
328
|
+
*/
|
|
329
|
+
repository: string;
|
|
330
|
+
/**
|
|
331
|
+
* Jenkins credentials Id for this repository for uploading the chart
|
|
332
|
+
*/
|
|
333
|
+
credentials: string;
|
|
334
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "Florian Imdahl <git@ffflorian.de>",
|
|
3
|
+
"dependencies": {},
|
|
4
|
+
"description": "TypeScript definitions for bxci.schema-2.x.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"main": "index.d.ts",
|
|
7
|
+
"name": "@schemastore/bxci.schema-2.x",
|
|
8
|
+
"repository": "https://github.com/ffflorian/schemastore-updater/tree/main/schemas/bxci.schema-2.x",
|
|
9
|
+
"scripts": {},
|
|
10
|
+
"typesPublisherContentHash": "e7434d0458889cb275b3ee86deec6ca85df6c42c2119c9e917b7c97a833d1081",
|
|
11
|
+
"types": "index.d.ts",
|
|
12
|
+
"version": "0.0.1",
|
|
13
|
+
"typeScriptVersion": "2.2"
|
|
14
|
+
}
|