@schemastore/bxci.schema-1.0.1 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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +12 -0
  3. package/index.d.ts +256 -0
  4. 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-1.0.1`
3
+
4
+ # Summary
5
+ This package contains type definitions for bxci.schema-1.0.1.
6
+
7
+ ## Details
8
+ Files were exported from https://github.com/ffflorian/schemastore-updater/tree/main/schemas/bxci.schema-1.0.1.
9
+
10
+ ## Additional Details
11
+ * Last updated: Sun, Sep 11, 2022, 10:48:53 GMT
12
+ * Dependencies: none
package/index.d.ts ADDED
@@ -0,0 +1,256 @@
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
+ export type OutputHelmUpdatesProperties = {
13
+ /**
14
+ * Yaml property (full path) to be updated
15
+ */
16
+ key: string;
17
+ /**
18
+ * Environment variable whose value will be used to update the property
19
+ */
20
+ env?: string;
21
+ /**
22
+ * Value to update the given property
23
+ */
24
+ value?: string;
25
+ } & OutputHelmUpdatesProperties1;
26
+ export type OutputHelmUpdatesProperties1 =
27
+ | {
28
+ [k: string]: unknown;
29
+ }
30
+ | {
31
+ [k: string]: unknown;
32
+ };
33
+
34
+ /**
35
+ * CI configuration for Amdocs Bill Experience projects
36
+ */
37
+ export interface BxciSchema10 {
38
+ /**
39
+ * Project properties
40
+ */
41
+ project: {
42
+ /**
43
+ * Project's name (used by Jenkins, Docker and Sonar)
44
+ */
45
+ name?: string;
46
+ /**
47
+ * Project type
48
+ */
49
+ type?: "npm" | "maven" | "mvn";
50
+ /**
51
+ * ID of a managed maven or npm Jenkins file
52
+ */
53
+ settings?: string;
54
+ };
55
+ config?: {
56
+ jenkins_runtime?: {
57
+ /**
58
+ * Specifies how to build the Docker container (from an existing image or from a local Dockerfile)
59
+ */
60
+ docker: {
61
+ /**
62
+ * Prebuilt Docker image (has precedence over dockerfile)
63
+ */
64
+ image?: string;
65
+ /**
66
+ * Path to a local Dockerfile
67
+ */
68
+ dockerfile?: string;
69
+ };
70
+ };
71
+ /**
72
+ * Describes on which branch names a build will be run
73
+ */
74
+ branch?: {
75
+ branch_pattern?: BranchPattern;
76
+ /**
77
+ * Disables branch name validation
78
+ */
79
+ disable_validation?: boolean;
80
+ };
81
+ build?: {
82
+ /**
83
+ * Whether Jenkins workspace should be cleaned after the build
84
+ */
85
+ clean_workspace_after_run?: boolean;
86
+ checkmarx?: Checkmarx;
87
+ static_analysis?: Sonar;
88
+ };
89
+ };
90
+ /**
91
+ * Additional services required by the project or application.
92
+ */
93
+ services?: ("Postgres" | "Postgis" | "Redis" | "Mssql" | "Mysql" | "Mongodb" | "Elasticsearch")[];
94
+ /**
95
+ * Custom environment variables to be added to the pipeline
96
+ */
97
+ environment?: {
98
+ [k: string]: unknown;
99
+ };
100
+ /**
101
+ * Jenkins environment variables that are passed to the Docker container
102
+ */
103
+ jenkinsEnvironment?: string[];
104
+ /**
105
+ * Defines the stages and steps required to build the project.
106
+ */
107
+ stages: {
108
+ [k: string]: Stage;
109
+ };
110
+ /**
111
+ * Describes artifacts generated after all the stages have been run
112
+ */
113
+ output?: {
114
+ docker?: OutputDocker;
115
+ helm?: OutputHelm;
116
+ };
117
+ /**
118
+ * List of artifacts to archive (wildcards allowed). Check out https://www.jenkins.io/doc/pipeline/steps/core/#archiveartifacts-archive-the-artifacts
119
+ */
120
+ archive?: unknown[];
121
+ /**
122
+ * Build timeout in seconds
123
+ */
124
+ timeout?: number;
125
+ [k: string]: unknown;
126
+ }
127
+ /**
128
+ * Adds a Static Analysis stage for CheckMarx. See https://www.jenkins.io/doc/pipeline/steps/checkmarx/ for all the configuration options.
129
+ */
130
+ export interface Checkmarx {
131
+ enabled?: boolean;
132
+ groupId?: string;
133
+ preset?: string;
134
+ projectName?: string;
135
+ /**
136
+ * Regular expression for validating branch names
137
+ */
138
+ branch_pattern?: string;
139
+ useOwnServerCredentials?: boolean;
140
+ serverUrl?: string;
141
+ credentialsId?: string;
142
+ generatePdfReport?: boolean;
143
+ sourceEncoding?: string;
144
+ isProxy?: boolean;
145
+ waitForResultsEnabled?: boolean;
146
+ }
147
+ /**
148
+ * Adds a Static Analysis stage for Sonar.
149
+ */
150
+ export interface Sonar {
151
+ enabled?: boolean;
152
+ /**
153
+ * Waits for analysis result and breaks the build when the project fails for some quality gates.
154
+ */
155
+ breaks_build?: boolean;
156
+ /**
157
+ * Seconds to wait for the result of the quality gate. Only applies when breaks_build is set to true
158
+ */
159
+ timeout?: number;
160
+ }
161
+ /**
162
+ * Stage name in the Jenkins pipeline
163
+ *
164
+ * This interface was referenced by `undefined`'s JSON-Schema definition
165
+ * via the `patternProperty` "^\w+( \w+)*$".
166
+ */
167
+ export interface Stage {
168
+ /**
169
+ * List of steps to run
170
+ */
171
+ steps: unknown[];
172
+ /**
173
+ * Condition that should be met to run this step
174
+ */
175
+ when?: {
176
+ /**
177
+ * Specifies in which branches this stage will be executed
178
+ */
179
+ branch?: string;
180
+ [k: string]: unknown;
181
+ };
182
+ }
183
+ /**
184
+ * Configuration for generating a Docker image
185
+ */
186
+ export interface OutputDocker {
187
+ /**
188
+ * Path to Dockerfile used to generate the docker image
189
+ */
190
+ dockerfile: string;
191
+ /**
192
+ * Image name for the generated docker image. Cannot include tag. Tag will be automatically generated based on project version.
193
+ */
194
+ image_name: string;
195
+ publish?: OutputDockerPublish;
196
+ [k: string]: unknown;
197
+ }
198
+ /**
199
+ * Docker publishing information. If not present, the image won't be published
200
+ */
201
+ export interface OutputDockerPublish {
202
+ /**
203
+ * Indicates on what branches publishing is enabled. Typically, master and release branches
204
+ */
205
+ branch: string;
206
+ /**
207
+ * Docker registry. Must include protocol (http|https) and port
208
+ */
209
+ registry: string;
210
+ /**
211
+ * Jenkins credentials ID for publishing into the specified Docker registry
212
+ */
213
+ credentials: string;
214
+ [k: string]: unknown;
215
+ }
216
+ /**
217
+ * Configuration for generating a Helm chart
218
+ */
219
+ export interface OutputHelm {
220
+ /**
221
+ * Path to the folder with all required chart config files
222
+ */
223
+ path: string;
224
+ /**
225
+ * 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
226
+ */
227
+ updates: OutputHelmUpdates[];
228
+ publish: OutputHelmPublish;
229
+ }
230
+ export interface OutputHelmUpdates {
231
+ /**
232
+ * Name (including path from Helm object path) of the file to be updated. Only supports yaml files
233
+ */
234
+ file: string;
235
+ /**
236
+ * A list of properties to update. It can be updated with a fixed value or environment variable
237
+ */
238
+ properties: OutputHelmUpdatesProperties[];
239
+ }
240
+ /**
241
+ * Allows to publish the Helm chart
242
+ */
243
+ export interface OutputHelmPublish {
244
+ /**
245
+ * Indicates on which branches publishing is enabled. Typically, master and release branches
246
+ */
247
+ branch: string;
248
+ /**
249
+ * Helm chart repository. Must include protocol, host, port (if needed) and path
250
+ */
251
+ repository: string;
252
+ /**
253
+ * Jenkins credentials Id for this repository for uploading the chart
254
+ */
255
+ credentials: string;
256
+ }
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-1.0.1.",
5
+ "license": "MIT",
6
+ "main": "index.d.ts",
7
+ "name": "@schemastore/bxci.schema-1.0.1",
8
+ "repository": "https://github.com/ffflorian/schemastore-updater/tree/main/schemas/bxci.schema-1.0.1",
9
+ "scripts": {},
10
+ "typesPublisherContentHash": "99ee394be27224391a726f2a9910100bd3a1af5879c72671e24bc1351d62b6d6",
11
+ "types": "index.d.ts",
12
+ "version": "0.0.1",
13
+ "typeScriptVersion": "2.2"
14
+ }