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