@schemastore/bxci.schema-2.x 0.0.1 → 0.0.2
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/README.md +1 -1
- package/index.d.ts +166 -37
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -8,5 +8,5 @@ This package contains type definitions for bxci.schema-2.x.
|
|
|
8
8
|
Files were exported from https://github.com/ffflorian/schemastore-updater/tree/main/schemas/bxci.schema-2.x.
|
|
9
9
|
|
|
10
10
|
## Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Thu, Apr 27, 2023, 09:50:34 GMT
|
|
12
12
|
* Dependencies: none
|
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* eslint-disable */
|
|
2
2
|
/**
|
|
3
3
|
* This file was automatically generated by json-schema-to-typescript.
|
|
4
4
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
@@ -9,12 +9,36 @@
|
|
|
9
9
|
* Regular expression for validating branch names
|
|
10
10
|
*/
|
|
11
11
|
export type BranchPattern = string;
|
|
12
|
+
/**
|
|
13
|
+
* Stage name in the Jenkins pipeline
|
|
14
|
+
*
|
|
15
|
+
* This interface was referenced by `Stages`'s JSON-Schema definition
|
|
16
|
+
* via the `patternProperty` "^\w+( \w+)*$".
|
|
17
|
+
*/
|
|
18
|
+
export type Stage = (Stage1 | ParallelStage) & {
|
|
19
|
+
when?: When;
|
|
20
|
+
steps?: Steps;
|
|
21
|
+
fail_fast?: FailFast;
|
|
22
|
+
parallel?: Parallel;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* List of steps to run
|
|
26
|
+
*/
|
|
27
|
+
export type Steps = unknown[];
|
|
28
|
+
/**
|
|
29
|
+
* Regular expression for validating branch names
|
|
30
|
+
*/
|
|
31
|
+
export type Branch = string;
|
|
32
|
+
/**
|
|
33
|
+
* Forces parallel stages to all be aborted when one of them fails
|
|
34
|
+
*/
|
|
35
|
+
export type FailFast = boolean;
|
|
12
36
|
/**
|
|
13
37
|
* Release channel name
|
|
14
38
|
*/
|
|
15
39
|
export type ReleaseChannel = string;
|
|
16
40
|
/**
|
|
17
|
-
* Indicates on which branches the artifact will be published
|
|
41
|
+
* Indicates on which branches the artifact will be published
|
|
18
42
|
*/
|
|
19
43
|
export type ReleaseChannelBranch = string;
|
|
20
44
|
/**
|
|
@@ -25,6 +49,31 @@ export type OutputPackagePublish = PackagePublishChannel[];
|
|
|
25
49
|
* Docker publishing information. If not present, no images will be published
|
|
26
50
|
*/
|
|
27
51
|
export type OutputDockerPublish = DockerReleaseChannel[];
|
|
52
|
+
export type OutputDockerBuildArgs = {
|
|
53
|
+
/**
|
|
54
|
+
* ARG name
|
|
55
|
+
*/
|
|
56
|
+
key: string;
|
|
57
|
+
/**
|
|
58
|
+
* Environment variable whose value will be used to set the ARG
|
|
59
|
+
*/
|
|
60
|
+
env?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Value of the ARG
|
|
63
|
+
*/
|
|
64
|
+
value?: string;
|
|
65
|
+
} & OutputDockerBuildArgs1;
|
|
66
|
+
export type OutputDockerBuildArgs1 =
|
|
67
|
+
| {
|
|
68
|
+
[k: string]: unknown | undefined;
|
|
69
|
+
}
|
|
70
|
+
| {
|
|
71
|
+
[k: string]: unknown | undefined;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* List of build args (--build-arg) to pass in docker build
|
|
75
|
+
*/
|
|
76
|
+
export type DockerBuildArgs = OutputDockerBuildArgs[];
|
|
28
77
|
export type OutputHelmUpdatesProperties = {
|
|
29
78
|
/**
|
|
30
79
|
* Yaml property (full path) to be updated
|
|
@@ -41,10 +90,10 @@ export type OutputHelmUpdatesProperties = {
|
|
|
41
90
|
} & OutputHelmUpdatesProperties1;
|
|
42
91
|
export type OutputHelmUpdatesProperties1 =
|
|
43
92
|
| {
|
|
44
|
-
[k: string]: unknown;
|
|
93
|
+
[k: string]: unknown | undefined;
|
|
45
94
|
}
|
|
46
95
|
| {
|
|
47
|
-
[k: string]: unknown;
|
|
96
|
+
[k: string]: unknown | undefined;
|
|
48
97
|
};
|
|
49
98
|
/**
|
|
50
99
|
* Helm chart publishing configuration. If not present, no charts will be published
|
|
@@ -103,14 +152,18 @@ export interface BxciSchema2 {
|
|
|
103
152
|
* Whether Jenkins workspace should be cleaned after the build
|
|
104
153
|
*/
|
|
105
154
|
clean_workspace_after_run?: boolean;
|
|
106
|
-
|
|
155
|
+
/**
|
|
156
|
+
* Commit age threshold. Disables automated builds older than this parameter. When 0, this feature is disabled
|
|
157
|
+
*/
|
|
158
|
+
commit_time_threshold?: 0 | string;
|
|
159
|
+
checkmarx?: CheckMarx;
|
|
107
160
|
static_analysis?: Sonar;
|
|
108
161
|
};
|
|
109
162
|
/**
|
|
110
163
|
* Cache configuration for projects built inside Docker containers
|
|
111
164
|
*/
|
|
112
165
|
cache?: {
|
|
113
|
-
repository
|
|
166
|
+
repository?: BinaryRepository;
|
|
114
167
|
/**
|
|
115
168
|
* List of cache types
|
|
116
169
|
*/
|
|
@@ -125,18 +178,13 @@ export interface BxciSchema2 {
|
|
|
125
178
|
* Custom environment variables to be added to the pipeline
|
|
126
179
|
*/
|
|
127
180
|
environment?: {
|
|
128
|
-
[k: string]: unknown;
|
|
181
|
+
[k: string]: unknown | undefined;
|
|
129
182
|
};
|
|
130
183
|
/**
|
|
131
184
|
* Jenkins environment variables that are passed to the Docker container
|
|
132
185
|
*/
|
|
133
186
|
jenkinsEnvironment?: string[];
|
|
134
|
-
|
|
135
|
-
* Defines the stages and steps required to build the project.
|
|
136
|
-
*/
|
|
137
|
-
stages: {
|
|
138
|
-
[k: string]: Stage;
|
|
139
|
-
};
|
|
187
|
+
stages: Stages;
|
|
140
188
|
/**
|
|
141
189
|
* Describes artifacts generated after all the stages have been run
|
|
142
190
|
*/
|
|
@@ -153,27 +201,85 @@ export interface BxciSchema2 {
|
|
|
153
201
|
* Build timeout in seconds
|
|
154
202
|
*/
|
|
155
203
|
timeout?: number;
|
|
156
|
-
[k: string]: unknown;
|
|
204
|
+
[k: string]: unknown | undefined;
|
|
157
205
|
}
|
|
158
206
|
/**
|
|
159
207
|
* Adds a Static Analysis stage for CheckMarx. See https://www.jenkins.io/doc/pipeline/steps/checkmarx/ for all the configuration options.
|
|
160
208
|
*/
|
|
161
|
-
export interface
|
|
209
|
+
export interface CheckMarx {
|
|
210
|
+
/**
|
|
211
|
+
* Sets whether the scan should be run
|
|
212
|
+
*/
|
|
162
213
|
enabled?: boolean;
|
|
214
|
+
/**
|
|
215
|
+
* Specifies in which branches this stage will be executed
|
|
216
|
+
*/
|
|
217
|
+
branch_pattern?: string;
|
|
218
|
+
/**
|
|
219
|
+
* Fully qualified team name for the project
|
|
220
|
+
*/
|
|
163
221
|
groupId?: string;
|
|
222
|
+
/**
|
|
223
|
+
* Scan preset for the project
|
|
224
|
+
*/
|
|
164
225
|
preset?: string;
|
|
165
|
-
projectName?: string;
|
|
166
226
|
/**
|
|
167
|
-
*
|
|
227
|
+
* Language encoding ID associated to the source code character encoding (5: Multi-Language Scan)
|
|
228
|
+
*/
|
|
229
|
+
sourceEncoding?: string;
|
|
230
|
+
/**
|
|
231
|
+
* Checkmarx Server URL or IP address
|
|
168
232
|
*/
|
|
169
|
-
branch_pattern?: string;
|
|
170
|
-
useOwnServerCredentials?: boolean;
|
|
171
233
|
serverUrl?: string;
|
|
234
|
+
/**
|
|
235
|
+
* Jenkins credentials ID
|
|
236
|
+
*/
|
|
172
237
|
credentialsId?: string;
|
|
173
|
-
generatePdfReport?: boolean;
|
|
174
|
-
sourceEncoding?: string;
|
|
175
238
|
isProxy?: boolean;
|
|
239
|
+
/**
|
|
240
|
+
* Enables the use of the default server credentials or disables and provides server and credentials that override the defaults
|
|
241
|
+
*/
|
|
242
|
+
useOwnServerCredentials?: boolean;
|
|
243
|
+
/**
|
|
244
|
+
* Unique project name. Will be inferred from the repository name if not provided
|
|
245
|
+
*/
|
|
246
|
+
projectName?: string;
|
|
247
|
+
/**
|
|
248
|
+
* Specifies which exclusions settings to use: global (Jenkins global settings) or job (current pipeline)
|
|
249
|
+
*/
|
|
250
|
+
exclusionsSetting?: "job" | "global";
|
|
251
|
+
/**
|
|
252
|
+
* Comma separated list of folders to be excluded from the CxSAST scan
|
|
253
|
+
*/
|
|
254
|
+
excludeFolders?: string;
|
|
255
|
+
/**
|
|
256
|
+
* Defines the include/exclude wildcard patterns. Does not have effect when "exclusionsSetting" is set to "global"
|
|
257
|
+
*/
|
|
258
|
+
filterPattern?: string;
|
|
259
|
+
/**
|
|
260
|
+
* Sets whether debug logs are visible in the job output
|
|
261
|
+
*/
|
|
262
|
+
hideDebugLogs?: boolean;
|
|
263
|
+
/**
|
|
264
|
+
* Sets whether the scan should be executed synchronously (default). The Synchronous mode allows viewing scan results in Jenkins
|
|
265
|
+
*/
|
|
176
266
|
waitForResultsEnabled?: boolean;
|
|
267
|
+
/**
|
|
268
|
+
* Sets whether the scan should fail if the number of vulnerabilities is above the configured thresholds. This option is only available if the waitForResultsEnabled parameter is enabled
|
|
269
|
+
*/
|
|
270
|
+
vulnerabilityThresholdEnabled?: boolean;
|
|
271
|
+
/**
|
|
272
|
+
* Sets the maximum number of High vulnerabilities allowed
|
|
273
|
+
*/
|
|
274
|
+
highThreshold?: number;
|
|
275
|
+
/**
|
|
276
|
+
* Sets the maximum number of Medium vulnerabilities allowed
|
|
277
|
+
*/
|
|
278
|
+
mediumThreshold?: number;
|
|
279
|
+
/**
|
|
280
|
+
* Sets the maximum number of Low vulnerabilities allowed
|
|
281
|
+
*/
|
|
282
|
+
lowThreshold?: number;
|
|
177
283
|
}
|
|
178
284
|
/**
|
|
179
285
|
* Adds a Static Analysis stage for Sonar.
|
|
@@ -206,7 +312,7 @@ export interface CacheItem {
|
|
|
206
312
|
/**
|
|
207
313
|
* Cache type
|
|
208
314
|
*/
|
|
209
|
-
type: "maven" | "npm";
|
|
315
|
+
type: "maven" | "npm" | "local";
|
|
210
316
|
/**
|
|
211
317
|
* Sets whether this cache type is enabled
|
|
212
318
|
*/
|
|
@@ -221,27 +327,49 @@ export interface CacheItem {
|
|
|
221
327
|
target?: string;
|
|
222
328
|
}
|
|
223
329
|
/**
|
|
224
|
-
*
|
|
225
|
-
|
|
226
|
-
|
|
330
|
+
* Defines the stages and steps required to build the project.
|
|
331
|
+
*/
|
|
332
|
+
export interface Stages {
|
|
333
|
+
[k: string]: Stage;
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* This interface was referenced by `Parallel`'s JSON-Schema definition
|
|
227
337
|
* via the `patternProperty` "^\w+( \w+)*$".
|
|
228
338
|
*/
|
|
229
|
-
export interface
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
339
|
+
export interface Stage1 {
|
|
340
|
+
steps: Steps;
|
|
341
|
+
when?: When;
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Condition that should be met to run this step
|
|
345
|
+
*/
|
|
346
|
+
export interface When {
|
|
347
|
+
branch?: Branch;
|
|
348
|
+
[k: string]: unknown | undefined;
|
|
349
|
+
}
|
|
350
|
+
export interface ParallelStage {
|
|
351
|
+
when?: When;
|
|
352
|
+
fail_fast?: FailFast;
|
|
234
353
|
/**
|
|
235
|
-
*
|
|
354
|
+
* List of stages to be executed in parallel
|
|
236
355
|
*/
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
* Specifies in which branches this stage will be executed
|
|
240
|
-
*/
|
|
241
|
-
branch?: string;
|
|
242
|
-
[k: string]: unknown;
|
|
356
|
+
parallel: {
|
|
357
|
+
[k: string]: Stage2;
|
|
243
358
|
};
|
|
244
359
|
}
|
|
360
|
+
/**
|
|
361
|
+
* Stage name in the Jenkins pipeline
|
|
362
|
+
*
|
|
363
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
364
|
+
* via the `patternProperty` "^\w+( \w+)*$".
|
|
365
|
+
*/
|
|
366
|
+
export interface Stage2 {
|
|
367
|
+
steps: Steps;
|
|
368
|
+
when?: When;
|
|
369
|
+
}
|
|
370
|
+
export interface Parallel {
|
|
371
|
+
[k: string]: Stage1;
|
|
372
|
+
}
|
|
245
373
|
/**
|
|
246
374
|
* Configuration for publishing NPM or Maven packages
|
|
247
375
|
*/
|
|
@@ -274,6 +402,7 @@ export interface OutputDocker {
|
|
|
274
402
|
image_name: string;
|
|
275
403
|
publish?: OutputDockerPublish;
|
|
276
404
|
vulnerability_scan?: VulnerabilityScan;
|
|
405
|
+
args?: DockerBuildArgs;
|
|
277
406
|
}
|
|
278
407
|
export interface DockerReleaseChannel {
|
|
279
408
|
channel: ReleaseChannel;
|
package/package.json
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
"name": "@schemastore/bxci.schema-2.x",
|
|
8
8
|
"repository": "https://github.com/ffflorian/schemastore-updater/tree/main/schemas/bxci.schema-2.x",
|
|
9
9
|
"scripts": {},
|
|
10
|
-
"
|
|
10
|
+
"typeScriptVersion": "2.2",
|
|
11
11
|
"types": "index.d.ts",
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
}
|
|
12
|
+
"typesPublisherContentHash": "157be268a3c0ceb30a44cc0f5ca9ca020abbcc199c6f423973c5abc5c1733a61",
|
|
13
|
+
"version": "0.0.2"
|
|
14
|
+
}
|