@schemastore/cloud-sdk-pipeline-config-schema 0.0.4 → 0.0.5

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 +1 -1
  2. package/README.md +1 -1
  3. package/index.d.ts +179 -152
  4. package/package.json +3 -3
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) Florian Keller. All rights reserved.
3
+ Copyright (c) Florian Imdahl. All rights reserved.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -8,5 +8,5 @@ This package contains type definitions for cloud-sdk-pipeline-config-schema.
8
8
  Files were exported from https://github.com/ffflorian/schemastore-updater/tree/main/schemas/cloud-sdk-pipeline-config-schema.
9
9
 
10
10
  ## Additional Details
11
- * Last updated: Sat, Jul 04, 2020, 11:00:04 GMT
11
+ * Last updated: Fri, Feb 24, 2023, 11:23:31 GMT
12
12
  * Dependencies: none
package/index.d.ts CHANGED
@@ -1,42 +1,10 @@
1
- /* tslint:disable */
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,
5
5
  * and run json-schema-to-typescript to regenerate this file.
6
6
  */
7
7
 
8
- /**
9
- * Cloud Foundry organization.
10
- */
11
- export type Org = string;
12
- /**
13
- * Cloud Foundry space.
14
- */
15
- export type Space = string;
16
- /**
17
- * Name of the application.
18
- */
19
- export type AppName = string;
20
- /**
21
- * Manifest file that needs to be used.
22
- */
23
- export type Manifest = string;
24
- /**
25
- * ID to the credentials that will be used.
26
- */
27
- export type CredentialsId = string;
28
- /**
29
- * URL to the Cloud Foundry endpoint.
30
- */
31
- export type ApiEndpoint = string;
32
- /**
33
- * (Only for MTA-projects) Path to the mta extension description file. For more information on how to use those extension files please visit the SAP HANA Developer Guide.
34
- */
35
- export type MtaExtensionDescriptor = string;
36
- /**
37
- * (Only for MTA-projects) Map of credentials that need to be replaced in the mtaExtensionDescriptor. This map needs to be created as value-to-be-replaced:id-of-a-credential-in-jenkins
38
- */
39
- export type MtaExtensionCredentials = string;
40
8
  /**
41
9
  * The image used in the step or stage.
42
10
  */
@@ -49,11 +17,11 @@ export type AppUrls = {
49
17
  /**
50
18
  * ID to the credentials that will be used to connect to the SAP Cloudplatform account.
51
19
  */
52
- credentialId: string;
20
+ credentialId?: string;
53
21
  /**
54
- * Additional parameters can be passed for each end-to-end test deployment by specifying optional parameters for an application URL. These parameters are appended to the npm command during execution.
22
+ * Additional parameters can be passed for each end-to-end test deployment by specifying optional parameters for an application URL. These parameters are appended to the npm command during execution. These parameters must be a list of strings, where each string corresponds to one element of the parameters. For example, if the parameter `--tag scenario1` should be passed to the test, specify parameters: ['--tag', 'scenario1'].
55
23
  */
56
- parameters?: string;
24
+ parameters?: unknown[];
57
25
  }[];
58
26
  /**
59
27
  * Host of the region you want to deploy to, see Regions.
@@ -67,6 +35,10 @@ export type Account = string;
67
35
  * Name of the application in your account.
68
36
  */
69
37
  export type Application = string;
38
+ /**
39
+ * ID to the credentials that will be used.
40
+ */
41
+ export type CredentialsId = string;
70
42
  /**
71
43
  * String of VM arguments passed to the JVM.
72
44
  */
@@ -94,6 +66,34 @@ export type NeoTargets = {
94
66
  runtime: Runtime;
95
67
  runtimeVersion: RuntimeVersion;
96
68
  }[];
69
+ /**
70
+ * Cloud Foundry organization.
71
+ */
72
+ export type Org = string;
73
+ /**
74
+ * Cloud Foundry space.
75
+ */
76
+ export type Space = string;
77
+ /**
78
+ * Name of the application.
79
+ */
80
+ export type AppName = string;
81
+ /**
82
+ * Manifest file that needs to be used.
83
+ */
84
+ export type Manifest = string;
85
+ /**
86
+ * URL to the Cloud Foundry endpoint.
87
+ */
88
+ export type ApiEndpoint = string;
89
+ /**
90
+ * (Only for MTA-projects) Path to the mta extension description file. For more information on how to use those extension files please visit the SAP HANA Developer Guide.
91
+ */
92
+ export type MtaExtensionDescriptor = string;
93
+ /**
94
+ * (Only for MTA-projects) Map of credentials that need to be replaced in the mtaExtensionDescriptor. This map needs to be created as value-to-be-replaced:id-of-a-credential-in-jenkins
95
+ */
96
+ export type MtaExtensionCredentials = string;
97
97
  export type CfTargets = {
98
98
  org?: Org;
99
99
  space?: Space;
@@ -109,6 +109,10 @@ export type CfTargets = {
109
109
  * The configuration file of the SAP Cloud SDK Continuous Delivery Toolkit. For more information please visit https://github.com/SAP/cloud-s4-sdk-pipeline
110
110
  */
111
111
  export interface SAPCloudSDKPipelineConfigJSONSchema {
112
+ /**
113
+ * List of paths or URLs to YAML files with custom defaults to consider. These defaults override built-in defaults, and can be shared across multiple projects. Project configuration takes precedence.
114
+ */
115
+ customDefaults?: string[];
112
116
  /**
113
117
  * The general configuration of the pipeline
114
118
  */
@@ -122,21 +126,25 @@ export interface SAPCloudSDKPipelineConfigJSONSchema {
122
126
  */
123
127
  projectName?: string;
124
128
  /**
125
- * No personal data is collected. For details, consult the analytics documentation.
129
+ * Git url of the repository containing the extensions.
126
130
  */
127
- collectTelemetryData?: boolean;
131
+ globalExtensionsRepository?: string;
128
132
  /**
129
- * Enable unsafe mode to skip checking environment variables for insecure elements. Only use this for demo purposes, never for productive usage.
133
+ * Version of the extensions which should be used, e.g. the tag name
130
134
  */
131
- unsafeMode?: boolean;
135
+ globalExtensionsVersion?: string;
136
+ /**
137
+ * Credentials required to clone the repository
138
+ */
139
+ globalExtensionsRepositoryCredentialsId?: string;
132
140
  /**
133
- * Apply automated versioning scheme. To disable this feature, set the value to false.
141
+ * No personal data is collected. For details, consult the analytics documentation.
134
142
  */
135
- automaticVersioning?: boolean;
143
+ collectTelemetryData?: boolean;
136
144
  /**
137
- * Path to a shared configuration file, which is merged with the project's configuration file.
145
+ * Enable unsafe mode to skip checking environment variables for insecure elements. Only use this for demo purposes, never for productive usage.
138
146
  */
139
- sharedConfiguration?: string;
147
+ unsafeMode?: boolean;
140
148
  /**
141
149
  * Allows enabling or disable certain optional features.
142
150
  */
@@ -162,17 +170,6 @@ export interface SAPCloudSDKPipelineConfigJSONSchema {
162
170
  * Configuration, which will modify the behaviour of stages in the SAP Cloud SDK Pipeline.
163
171
  */
164
172
  stages?: {
165
- staticCodeChecks?: {
166
- /**
167
- * A comma-separated list of exclusions (.java source files) expressed as an Ant-style pattern relative to the sources root folder, i.e. application/src/main/java for maven projects and srv/src/main/java for MTA projects.
168
- * Example: generated/** /*.java. Please find more details in the maven plugin documentation for pmd.
169
- */
170
- pmdExcludes?: string;
171
- /**
172
- * Path to a FindBugs XML exclusion file relative to the application folder.
173
- */
174
- findbugsExcludesFile?: string;
175
- };
176
173
  backendIntegrationTests?: {
177
174
  /**
178
175
  * The number of times that integration tests will retry before aborting the build. Note: This will consume more time for the jenkins build.
@@ -189,11 +186,6 @@ export interface SAPCloudSDKPipelineConfigJSONSchema {
189
186
  alias: string;
190
187
  credentialId: string;
191
188
  }[];
192
- /**
193
- * Activates the creation of a HDI containers in CAP projects. The name of the container will contain the project name and a random id.
194
- */
195
- createHdiContainer?: boolean;
196
- cloudFoundry?: CloudFoundry;
197
189
  /**
198
190
  * Name of the Docker image that should be used.
199
191
  */
@@ -403,61 +395,13 @@ export interface SAPCloudSDKPipelineConfigJSONSchema {
403
395
  };
404
396
  };
405
397
  /**
406
- * Configure Fortify scans.
398
+ * Configure the stage Compliance, which currently executes a SonarQube (https://www.sonarqube.org/) scan.
407
399
  */
408
- fortifyScan?: {
409
- /**
410
- * URL how your Fortify Software Security Center client can be reached.
411
- */
412
- sscUrl: string;
413
- /**
414
- * ID of the credentials (username, password) you want to use for the Fortify Software Security Center. Can be configured in executeFortifyScan or here.
415
- */
416
- fortifyCredentialId: string;
417
- /**
418
- * Name of your project in Fortify.
419
- */
420
- fortifyProjectName: string;
421
- /**
422
- * ID of your project in Fortify.
423
- */
424
- projectVersionId: string;
425
- [k: string]: unknown;
426
- };
427
- /**
428
- * Configure SonarQube (https://www.sonarqube.org/) scans.
429
- */
430
- sonarQubeScan?: {
400
+ compliance?: {
431
401
  /**
432
402
  * Define whether the scan should also happen in non productive branches, i.e. if your SonarQube instance supports that.
433
403
  */
434
404
  runInAllBranches?: boolean;
435
- /**
436
- * The project is used to refer your project.
437
- */
438
- projectKey: string;
439
- /**
440
- * This property refers to a sonarqube instance, which needs to be defined in the Jenkins.
441
- */
442
- instance: string;
443
- /**
444
- * The image used in the step or stage.
445
- */
446
- dockerImage?: string;
447
- [k: string]: unknown;
448
- };
449
- /**
450
- * The lint stage can enforce common coding guidelines within a team.It supports the SAPUI5 best practices linter which operates on SAPUI5 components. A component is identified by a Component.js file in the directory.
451
- */
452
- lint?: {
453
- ui5BestPractices?: {
454
- esLanguageLevel?: string;
455
- failThreshold?: {
456
- error?: number;
457
- warning?: number;
458
- info?: number;
459
- };
460
- };
461
405
  };
462
406
  [k: string]: unknown;
463
407
  } | null;
@@ -476,6 +420,33 @@ export interface SAPCloudSDKPipelineConfigJSONSchema {
476
420
  projectSettingsFile?: string;
477
421
  [k: string]: unknown;
478
422
  };
423
+ /**
424
+ * If automatic versioning is enabled, this step is used to set a common version for artifacts and optionally push a corresponding tag.
425
+ */
426
+ artifactPrepareVersion?: {
427
+ dockerImage?: DockerImage;
428
+ /**
429
+ * Defines the user name which appears in version control for the versioning update (in case versioningType: cloud).
430
+ */
431
+ commitUserName?: string;
432
+ /**
433
+ * Defines if the automatically generated version (versioningType: cloud) should include the commit id hash.
434
+ */
435
+ includeCommitId?: boolean & string;
436
+ /**
437
+ * Defines the prefix which is used for the git tag which is written during the versioning run (only versioningType: cloud).
438
+ */
439
+ tagPrefix?: string;
440
+ /**
441
+ * Defines if the Unix timestamp number should be used as build number instead of the standard date format.
442
+ */
443
+ unixTimestamp?: boolean & string;
444
+ /**
445
+ * Defines the type of versioning (cloud: fully automatic, cloud_noTag: automatic but no tag created, library: manual)
446
+ */
447
+ versioningType?: string;
448
+ [k: string]: unknown;
449
+ };
479
450
  /**
480
451
  * The executeNpm step is used for all invocations of the npm build tool. It is, for example, used for building the frontend and for executing end to end tests.
481
452
  */
@@ -488,10 +459,6 @@ export interface SAPCloudSDKPipelineConfigJSONSchema {
488
459
  * The default npm registry url to be used as the remote mirror. Bypasses the local download cache if specified.
489
460
  */
490
461
  defaultNpmRegistry?: string;
491
- /**
492
- * The default npm registry url to be used as the remote mirror for the SAP npm packages. Bypasses the local download cache if specified.
493
- */
494
- sapNpmRegistry?: string;
495
462
  [k: string]: unknown;
496
463
  };
497
464
  executeSourceClearScan?: {
@@ -541,16 +508,6 @@ export interface SAPCloudSDKPipelineConfigJSONSchema {
541
508
  };
542
509
  [k: string]: unknown;
543
510
  };
544
- /**
545
- * SpotBugs static code analysis is executed as part of the static code checks.
546
- */
547
- checkFindBugs?: {
548
- /**
549
- * Bug definition filter file.
550
- */
551
- includeFilterFile?: string;
552
- [k: string]: unknown;
553
- };
554
511
  /**
555
512
  * Gatling is used as one of the performance tests tool.
556
513
  */
@@ -587,40 +544,77 @@ export interface SAPCloudSDKPipelineConfigJSONSchema {
587
544
  unstableThreshold?: number;
588
545
  [k: string]: unknown;
589
546
  };
590
- executeFortifyScan?: {
591
- dockerImage: DockerImage;
547
+ fortifyExecuteScan?: {
548
+ dockerImage?: DockerImage;
592
549
  /**
593
- * Sends the verbose out put to the Jenkins log.
550
+ * Sends the verbose output to the Jenkins log.
594
551
  */
595
552
  verbose?: boolean;
596
553
  /**
597
- * Java version of the source code that needs to be scanned
554
+ * Jenkins 'Secret text' credentials ID containing token to authenticate to Fortify SSC.
555
+ */
556
+ fortifyCredentialsId: string;
557
+ /**
558
+ * Jenkins 'Secret text' credentials ID containing token to authenticate to GitHub.
598
559
  */
599
- sourceVersion?: string;
560
+ githubTokenCredentialsId?: string;
600
561
  /**
601
- * The build ID for the Fortify scan.
562
+ * Fortify SSC Url to be used for accessing the APIs
602
563
  */
603
- buildId?: string;
564
+ serverUrl?: string;
604
565
  /**
605
- * Runs Fortify SCA inside the 64-bit JRE.
566
+ * The project used for reporting results in SSC
606
567
  */
607
- use64BitVersion?: string;
568
+ projectName?: string;
608
569
  /**
609
- * Maximum heap size of the JVM which runs Fortify SCA.
570
+ * The default project versioning model used in case 'projectVersion' parameter is empty for creating the version based on the build descriptor version to report results in SSC, can be one of 'major', 'major-minor', 'semantic', 'full'
610
571
  */
611
- maximumMemoryUsage?: string;
572
+ defaultVersioningModel?: string;
612
573
  /**
613
- * File and directories that needs to excluded from the scanning.
574
+ * Scan type used for the step which can be 'maven', 'pip'
614
575
  */
615
- exclude?: string;
576
+ buildTool?: string;
616
577
  /**
617
- * Skip the node modules from the scanning.
578
+ * Whether Fortify project and project version shall be implicitly auto created in case they cannot be found in the backend
618
579
  */
619
- skipNgComponents?: string;
580
+ autoCreate?: boolean;
620
581
  /**
621
- * Additional Fortify options such as thread count, alias usage etc.
582
+ * Whether results shall be uploaded or not
622
583
  */
623
- additionalScanOptions?: string;
584
+ uploadResults?: boolean;
585
+ /**
586
+ * The amount of memory granted to the translate/scan executions
587
+ */
588
+ memory?: string;
589
+ /**
590
+ * A list of source directories to scan. Wildcards can be used, e.g., 'src/main/java/** /*'. The default value for buildTool: 'maven' is ['** /*.xml', '** /*.html', '** /*.jsp', '** /*.js', '** /src/main/resources/** /*', '** /src/main/java/** /*'], for buildTool: 'pip' it is ['./** /*'].
591
+ */
592
+ src?: string[];
593
+ /**
594
+ * A list of directories/files to be excluded from the scan. Wildcards can be used, e.g., '** /Test.java'.
595
+ */
596
+ exclude?: string[];
597
+ [k: string]: unknown;
598
+ };
599
+ /**
600
+ * Configure credentials for WhiteSource scans. The minimum required Maven WhiteSource plugin version is 18.6.2, ensure this in the plugins section of the project pom.xml file.
601
+ *
602
+ * Pipeline will execute npx whitesource run for npm projects. Please ensure that all package.json files have a name configured so that it is possible to distinguish between the different packages.
603
+ */
604
+ whitesourceExecuteScan?: {
605
+ /**
606
+ * Name of your product in WhiteSource.
607
+ */
608
+ productName: string;
609
+ /**
610
+ * Overwrites the project version in the WhiteSource UI per scan with the given version. Per default, the version from the main build descriptor file is used and transformed according to the versioningModel parameter, i.e. "1" for the default model of "major".
611
+ */
612
+ productVersion?: string;
613
+ orgAdminUserTokenCredentialsId: CredentialsId;
614
+ /**
615
+ * Unique identifier of the Secret Text on Jenkins server that stores WhiteSource userKey of a user. This is required only if the administrator of the WhiteSource service has enabled additional access level control. More details can be found here.
616
+ */
617
+ userTokenCredentialsId?: string;
624
618
  [k: string]: unknown;
625
619
  };
626
620
  mtaBuild?: {
@@ -666,7 +660,32 @@ export interface SAPCloudSDKPipelineConfigJSONSchema {
666
660
  mtaJarLocation?: string;
667
661
  [k: string]: unknown;
668
662
  };
669
- createHdiContainer?: {
663
+ /**
664
+ * The debugReportArchive configuration can be used to create confidential (instead of redacted) debug reports. The difference between the redacted and the confidential debug report is that potentially confidential information, such as the GitHub repository and branch, global extension repository and shared libraries, are included in the confidential debug report. It is the user's responsibility to make sure that the debug report does not contain any confidential information.
665
+ */
666
+ debugReportArchive?: {
667
+ /**
668
+ * If set to true, a confidential debug report is being generated with each build.
669
+ */
670
+ shareConfidentialInformation?: boolean;
671
+ [k: string]: unknown;
672
+ };
673
+ /**
674
+ * Configure SonarQube (https://www.sonarqube.org/) scans.
675
+ */
676
+ sonarExecuteScan?: {
677
+ /**
678
+ * The project key is used to refer your project.
679
+ */
680
+ projectKey: string;
681
+ /**
682
+ * This property refers to a SonarQube instance, which needs to be defined in the Jenkins.
683
+ */
684
+ instance: string;
685
+ /**
686
+ * A list of additional options (in the form of '-Dxy=z') to be passed to the sonar scanner tool.
687
+ */
688
+ options?: unknown[] | string;
670
689
  /**
671
690
  * The image used in the step or stage.
672
691
  */
@@ -674,19 +693,33 @@ export interface SAPCloudSDKPipelineConfigJSONSchema {
674
693
  [k: string]: unknown;
675
694
  };
676
695
  /**
677
- * The debugReportArchive configuration can be used to create confidential (instead of redacted) debug reports. The difference between the redacted and the confidential debug report is that potentially confidential information, such as the GitHub repository and branch, global extension repository and shared libraries, are included in the confidential debug report. It is the user's responsibility to make sure that the debug report does not contain any confidential information.
696
+ * This step allows you to upload an MTA file (multi-target application archive) and multiple MTA extension descriptors into a TMS (SAP Cloud Platform Transport Management Service) landscape for further TMS-controlled distribution through a TMS-configured landscape.
678
697
  */
679
- debugReportArchive?: {
698
+ tmsUpload?: {
680
699
  /**
681
- * If set to true, a confidential debug report is being generated with each build.
700
+ * Defines the name of the node to which the *.mtar file should be uploaded.
682
701
  */
683
- shareConfidentialInformation?: boolean;
702
+ nodeName?: string;
703
+ /**
704
+ * Credentials to be used for the file and node uploads to the Transport Management Service.
705
+ */
706
+ credentialsId?: string;
707
+ /**
708
+ * Can be used as the description of a transport request. Will overwrite the default.
709
+ */
710
+ customDescription?: string;
684
711
  [k: string]: unknown;
685
712
  };
686
713
  [k: string]: unknown;
687
714
  } | null;
688
715
  [k: string]: unknown;
689
716
  }
717
+ /**
718
+ * Map of environment variables in the form of KEY: VALUE.
719
+ */
720
+ export interface Environment {
721
+ [k: string]: unknown;
722
+ }
690
723
  /**
691
724
  * A map specifying the Cloud Foundry specific parameters.
692
725
  */
@@ -700,9 +733,3 @@ export interface CloudFoundry {
700
733
  mtaExtensionDescriptor?: MtaExtensionDescriptor;
701
734
  mtaExtensionCredentials?: MtaExtensionCredentials;
702
735
  }
703
- /**
704
- * Map of environment variables in the form of KEY: VALUE.
705
- */
706
- export interface Environment {
707
- [k: string]: unknown;
708
- }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "author": "Florian Keller <github@floriankeller.de>",
2
+ "author": "Florian Imdahl <git@ffflorian.de>",
3
3
  "dependencies": {},
4
4
  "description": "TypeScript definitions for cloud-sdk-pipeline-config-schema.",
5
5
  "license": "MIT",
@@ -7,8 +7,8 @@
7
7
  "name": "@schemastore/cloud-sdk-pipeline-config-schema",
8
8
  "repository": "https://github.com/ffflorian/schemastore-updater/tree/main/schemas/cloud-sdk-pipeline-config-schema",
9
9
  "scripts": {},
10
- "typesPublisherContentHash": "67fed8630f52350ccf65b840640bfa5b8d5fd07e62c1adbc4b1abf29a7ef2b55",
10
+ "typesPublisherContentHash": "e83903166740812f2e6ea6c5cc280afd7900c92d79b87ec40bf4f31686694f00",
11
11
  "types": "index.d.ts",
12
- "version": "0.0.4",
12
+ "version": "0.0.5",
13
13
  "typeScriptVersion": "2.2"
14
14
  }