1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-11-06 09:09:19 +02:00

fix(influx): fix generated output parameters (#3362)

* fixed generated output parameters for influx

* change name to lower case

Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
This commit is contained in:
Siarhei Pazdniakou
2021-12-15 11:40:50 +03:00
committed by GitHub
parent 279ad5800c
commit 0879fa591a
38 changed files with 74 additions and 72 deletions

View File

@@ -233,7 +233,7 @@ func abapAddonAssemblyKitCheckCVsMetadata() config.StepData {
Name: "commonPipelineEnvironment",
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"Name": "abap/addonDescriptor"},
{"name": "abap/addonDescriptor"},
},
},
},

View File

@@ -233,7 +233,7 @@ func abapAddonAssemblyKitCheckPVMetadata() config.StepData {
Name: "commonPipelineEnvironment",
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"Name": "abap/addonDescriptor"},
{"name": "abap/addonDescriptor"},
},
},
},

View File

@@ -223,7 +223,7 @@ func abapAddonAssemblyKitCreateTargetVectorMetadata() config.StepData {
Name: "commonPipelineEnvironment",
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"Name": "abap/addonDescriptor"},
{"name": "abap/addonDescriptor"},
},
},
},

View File

@@ -224,7 +224,7 @@ func abapAddonAssemblyKitRegisterPackagesMetadata() config.StepData {
Name: "commonPipelineEnvironment",
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"Name": "abap/addonDescriptor"},
{"name": "abap/addonDescriptor"},
},
},
},

View File

@@ -242,7 +242,7 @@ func abapAddonAssemblyKitReleasePackagesMetadata() config.StepData {
Name: "commonPipelineEnvironment",
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"Name": "abap/addonDescriptor"},
{"name": "abap/addonDescriptor"},
},
},
},

View File

@@ -248,7 +248,7 @@ func abapAddonAssemblyKitReserveNextPackagesMetadata() config.StepData {
Name: "commonPipelineEnvironment",
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"Name": "abap/addonDescriptor"},
{"name": "abap/addonDescriptor"},
},
},
},

View File

@@ -288,7 +288,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
Name: "commonPipelineEnvironment",
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"Name": "abap/addonDescriptor"},
{"name": "abap/addonDescriptor"},
},
},
},

View File

@@ -301,7 +301,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
Name: "commonPipelineEnvironment",
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"Name": "abap/addonDescriptor"},
{"name": "abap/addonDescriptor"},
},
},
},

View File

@@ -413,7 +413,7 @@ func abapEnvironmentBuildMetadata() config.StepData {
Name: "commonPipelineEnvironment",
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"Name": "abap/buildValues"},
{"name": "abap/buildValues"},
},
},
},

View File

@@ -480,14 +480,14 @@ func artifactPrepareVersionMetadata() config.StepData {
Name: "commonPipelineEnvironment",
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"Name": "artifactVersion"},
{"Name": "originalArtifactVersion"},
{"Name": "artifactId"},
{"Name": "groupId"},
{"Name": "packaging"},
{"Name": "git/commitId"},
{"Name": "git/headCommitId"},
{"Name": "git/commitMessage"},
{"name": "artifactVersion"},
{"name": "originalArtifactVersion"},
{"name": "artifactId"},
{"name": "groupId"},
{"name": "packaging"},
{"name": "git/commitId"},
{"name": "git/headCommitId"},
{"name": "git/commitMessage"},
},
},
},

View File

@@ -227,7 +227,7 @@ func batsExecuteTestsMetadata() config.StepData {
Name: "influx",
Type: "influx",
Parameters: []map[string]interface{}{
{"Name": "step_data"}, {"fields": []map[string]string{{"name": "bats"}}},
{"name": "step_data", "fields": []map[string]string{{"name": "bats"}}},
},
},
},

View File

@@ -575,8 +575,8 @@ func checkmarxExecuteScanMetadata() config.StepData {
Name: "influx",
Type: "influx",
Parameters: []map[string]interface{}{
{"Name": "step_data"}, {"fields": []map[string]string{{"name": "checkmarx"}}},
{"Name": "checkmarx_data"}, {"fields": []map[string]string{{"name": "high_issues"}, {"name": "high_not_false_postive"}, {"name": "high_not_exploitable"}, {"name": "high_confirmed"}, {"name": "high_urgent"}, {"name": "high_proposed_not_exploitable"}, {"name": "high_to_verify"}, {"name": "medium_issues"}, {"name": "medium_not_false_postive"}, {"name": "medium_not_exploitable"}, {"name": "medium_confirmed"}, {"name": "medium_urgent"}, {"name": "medium_proposed_not_exploitable"}, {"name": "medium_to_verify"}, {"name": "low_issues"}, {"name": "low_not_false_postive"}, {"name": "low_not_exploitable"}, {"name": "low_confirmed"}, {"name": "low_urgent"}, {"name": "low_proposed_not_exploitable"}, {"name": "low_to_verify"}, {"name": "information_issues"}, {"name": "information_not_false_postive"}, {"name": "information_not_exploitable"}, {"name": "information_confirmed"}, {"name": "information_urgent"}, {"name": "information_proposed_not_exploitable"}, {"name": "information_to_verify"}, {"name": "lines_of_code_scanned"}, {"name": "files_scanned"}, {"name": "initiator_name"}, {"name": "owner"}, {"name": "scan_id"}, {"name": "project_id"}, {"name": "projectName"}, {"name": "team"}, {"name": "team_full_path_on_report_date"}, {"name": "scan_start"}, {"name": "scan_time"}, {"name": "checkmarx_version"}, {"name": "scan_type"}, {"name": "preset"}, {"name": "deep_link"}, {"name": "report_creation_time"}}},
{"name": "step_data", "fields": []map[string]string{{"name": "checkmarx"}}},
{"name": "checkmarx_data", "fields": []map[string]string{{"name": "high_issues"}, {"name": "high_not_false_postive"}, {"name": "high_not_exploitable"}, {"name": "high_confirmed"}, {"name": "high_urgent"}, {"name": "high_proposed_not_exploitable"}, {"name": "high_to_verify"}, {"name": "medium_issues"}, {"name": "medium_not_false_postive"}, {"name": "medium_not_exploitable"}, {"name": "medium_confirmed"}, {"name": "medium_urgent"}, {"name": "medium_proposed_not_exploitable"}, {"name": "medium_to_verify"}, {"name": "low_issues"}, {"name": "low_not_false_postive"}, {"name": "low_not_exploitable"}, {"name": "low_confirmed"}, {"name": "low_urgent"}, {"name": "low_proposed_not_exploitable"}, {"name": "low_to_verify"}, {"name": "information_issues"}, {"name": "information_not_false_postive"}, {"name": "information_not_exploitable"}, {"name": "information_confirmed"}, {"name": "information_urgent"}, {"name": "information_proposed_not_exploitable"}, {"name": "information_to_verify"}, {"name": "lines_of_code_scanned"}, {"name": "files_scanned"}, {"name": "initiator_name"}, {"name": "owner"}, {"name": "scan_id"}, {"name": "project_id"}, {"name": "projectName"}, {"name": "team"}, {"name": "team_full_path_on_report_date"}, {"name": "scan_start"}, {"name": "scan_time"}, {"name": "checkmarx_version"}, {"name": "scan_type"}, {"name": "preset"}, {"name": "deep_link"}, {"name": "report_creation_time"}}},
},
},
},

View File

@@ -563,7 +563,7 @@ func cloudFoundryDeployMetadata() config.StepData {
Name: "influx",
Type: "influx",
Parameters: []map[string]interface{}{
{"Name": "deployment_data"}, {"fields": []map[string]string{{"name": "artifactUrl"}, {"name": "deployTime"}, {"name": "commitHash"}, {"name": "jobTrigger"}}}, {"tags": []map[string]string{{"name": "artifactVersion"}, {"name": "deployUser"}, {"name": "deployResult"}, {"name": "cfApiEndpoint"}, {"name": "cfOrg"}, {"name": "cfSpace"}}},
{"name": "deployment_data", "fields": []map[string]string{{"name": "artifactUrl"}, {"name": "deployTime"}, {"name": "commitHash"}, {"name": "jobTrigger"}}, "tags": []map[string]string{{"name": "artifactVersion"}, {"name": "deployUser"}, {"name": "deployResult"}, {"name": "cfApiEndpoint"}, {"name": "cfOrg"}, {"name": "cfSpace"}}},
},
},
},

View File

@@ -323,8 +323,8 @@ func cnbBuildMetadata() config.StepData {
Name: "commonPipelineEnvironment",
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"Name": "container/registryUrl"},
{"Name": "container/imageNameTag"},
{"name": "container/registryUrl"},
{"name": "container/imageNameTag"},
},
},
},

View File

@@ -478,8 +478,8 @@ func detectExecuteScanMetadata() config.StepData {
Name: "influx",
Type: "influx",
Parameters: []map[string]interface{}{
{"Name": "step_data"}, {"fields": []map[string]string{{"name": "detect"}}},
{"Name": "detect_data"}, {"fields": []map[string]string{{"name": "vulnerabilities"}, {"name": "major_vulnerabilities"}, {"name": "minor_vulnerabilities"}, {"name": "components"}, {"name": "policy_violations"}}},
{"name": "step_data", "fields": []map[string]string{{"name": "detect"}}},
{"name": "detect_data", "fields": []map[string]string{{"name": "vulnerabilities"}, {"name": "major_vulnerabilities"}, {"name": "minor_vulnerabilities"}, {"name": "components"}, {"name": "policy_violations"}}},
},
},
},

View File

@@ -881,8 +881,8 @@ func fortifyExecuteScanMetadata() config.StepData {
Name: "influx",
Type: "influx",
Parameters: []map[string]interface{}{
{"Name": "step_data"}, {"fields": []map[string]string{{"name": "fortify"}}},
{"Name": "fortify_data"}, {"fields": []map[string]string{{"name": "projectName"}, {"name": "projectVersion"}, {"name": "projectVersionId"}, {"name": "violations"}, {"name": "corporateTotal"}, {"name": "corporateAudited"}, {"name": "auditAllTotal"}, {"name": "auditAllAudited"}, {"name": "spotChecksTotal"}, {"name": "spotChecksAudited"}, {"name": "spotChecksGap"}, {"name": "suspicious"}, {"name": "exploitable"}, {"name": "suppressed"}}},
{"name": "step_data", "fields": []map[string]string{{"name": "fortify"}}},
{"name": "fortify_data", "fields": []map[string]string{{"name": "projectName"}, {"name": "projectVersion"}, {"name": "projectVersionId"}, {"name": "violations"}, {"name": "corporateTotal"}, {"name": "corporateAudited"}, {"name": "auditAllTotal"}, {"name": "auditAllAudited"}, {"name": "spotChecksTotal"}, {"name": "spotChecksAudited"}, {"name": "spotChecksGap"}, {"name": "suspicious"}, {"name": "exploitable"}, {"name": "suppressed"}}},
},
},
},

View File

@@ -234,7 +234,7 @@ func gaugeExecuteTestsMetadata() config.StepData {
Name: "influx",
Type: "influx",
Parameters: []map[string]interface{}{
{"Name": "step_data"}, {"fields": []map[string]string{{"name": "gauge"}}},
{"name": "step_data", "fields": []map[string]string{{"name": "gauge"}}},
},
},
},

View File

@@ -197,8 +197,8 @@ func integrationArtifactGetMplStatusMetadata() config.StepData {
Name: "commonPipelineEnvironment",
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"Name": "custom/integrationFlowMplStatus"},
{"Name": "custom/integrationFlowMplError"},
{"name": "custom/integrationFlowMplStatus"},
{"name": "custom/integrationFlowMplError"},
},
},
},

View File

@@ -195,7 +195,7 @@ func integrationArtifactGetServiceEndpointMetadata() config.StepData {
Name: "commonPipelineEnvironment",
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"Name": "custom/integrationFlowServiceEndpoint"},
{"name": "custom/integrationFlowServiceEndpoint"},
},
},
},

View File

@@ -256,7 +256,7 @@ func isChangeInDevelopmentMetadata() config.StepData {
Name: "commonPipelineEnvironment",
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"Name": "custom/isChangeInDevelopment"},
{"name": "custom/isChangeInDevelopment"},
},
},
},

View File

@@ -310,9 +310,9 @@ func kanikoExecuteMetadata() config.StepData {
Name: "commonPipelineEnvironment",
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"Name": "container/registryUrl"},
{"Name": "container/imageNameTag"},
{"Name": "custom/buildSettingsInfo"},
{"name": "container/registryUrl"},
{"name": "container/imageNameTag"},
{"name": "custom/buildSettingsInfo"},
},
},
},

View File

@@ -398,7 +398,7 @@ func mavenBuildMetadata() config.StepData {
Name: "commonPipelineEnvironment",
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"Name": "custom/buildSettingsInfo"},
{"name": "custom/buildSettingsInfo"},
},
},
},

View File

@@ -427,10 +427,10 @@ func mtaBuildMetadata() config.StepData {
Name: "commonPipelineEnvironment",
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"Name": "mtarFilePath"},
{"Name": "custom/mtaBuildToolDesc"},
{"Name": "custom/mtarPublishedUrl"},
{"Name": "custom/buildSettingsInfo"},
{"name": "mtarFilePath"},
{"name": "custom/mtaBuildToolDesc"},
{"name": "custom/mtarPublishedUrl"},
{"name": "custom/buildSettingsInfo"},
},
},
},

View File

@@ -260,7 +260,7 @@ func newmanExecuteMetadata() config.StepData {
Name: "influx",
Type: "influx",
Parameters: []map[string]interface{}{
{"Name": "step_data"}, {"fields": []map[string]string{{"name": "newman"}}},
{"name": "step_data", "fields": []map[string]string{{"name": "newman"}}},
},
},
},

View File

@@ -332,7 +332,7 @@ func npmExecuteScriptsMetadata() config.StepData {
Name: "commonPipelineEnvironment",
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"Name": "custom/buildSettingsInfo"},
{"name": "custom/buildSettingsInfo"},
},
},
},

View File

@@ -462,8 +462,8 @@ func protecodeExecuteScanMetadata() config.StepData {
Name: "influx",
Type: "influx",
Parameters: []map[string]interface{}{
{"Name": "step_data"}, {"fields": []map[string]string{{"name": "protecode"}}},
{"Name": "protecode_data"}, {"fields": []map[string]string{{"name": "excluded_vulnerabilities"}, {"name": "historical_vulnerabilities"}, {"name": "major_vulnerabilities"}, {"name": "minor_vulnerabilities"}, {"name": "triaged_vulnerabilities"}, {"name": "vulnerabilities"}}},
{"name": "step_data", "fields": []map[string]string{{"name": "protecode"}}},
{"name": "protecode_data", "fields": []map[string]string{{"name": "excluded_vulnerabilities"}, {"name": "historical_vulnerabilities"}, {"name": "major_vulnerabilities"}, {"name": "minor_vulnerabilities"}, {"name": "triaged_vulnerabilities"}, {"name": "vulnerabilities"}}},
},
},
},

View File

@@ -525,8 +525,8 @@ func sonarExecuteScanMetadata() config.StepData {
Name: "influx",
Type: "influx",
Parameters: []map[string]interface{}{
{"Name": "step_data"}, {"fields": []map[string]string{{"name": "sonar"}}},
{"Name": "sonarqube_data"}, {"fields": []map[string]string{{"name": "blocker_issues"}, {"name": "critical_issues"}, {"name": "major_issues"}, {"name": "minor_issues"}, {"name": "info_issues"}}},
{"name": "step_data", "fields": []map[string]string{{"name": "sonar"}}},
{"name": "sonarqube_data", "fields": []map[string]string{{"name": "blocker_issues"}, {"name": "critical_issues"}, {"name": "major_issues"}, {"name": "minor_issues"}, {"name": "info_issues"}}},
},
},
},

View File

@@ -262,7 +262,7 @@ func terraformExecuteMetadata() config.StepData {
Name: "commonPipelineEnvironment",
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"Name": "custom/terraformOutputs"},
{"name": "custom/terraformOutputs"},
},
},
},

View File

@@ -195,7 +195,7 @@ func transportRequestDocIDFromGitMetadata() config.StepData {
Name: "commonPipelineEnvironment",
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"Name": "custom/changeDocumentId"},
{"name": "custom/changeDocumentId"},
},
},
},

View File

@@ -195,7 +195,7 @@ func transportRequestReqIDFromGitMetadata() config.StepData {
Name: "commonPipelineEnvironment",
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"Name": "custom/transportRequestId"},
{"name": "custom/transportRequestId"},
},
},
},

View File

@@ -312,7 +312,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
Name: "commonPipelineEnvironment",
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"Name": "custom/transportRequestId"},
{"name": "custom/transportRequestId"},
},
},
},

View File

@@ -336,7 +336,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
Name: "commonPipelineEnvironment",
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"Name": "custom/transportRequestId"},
{"name": "custom/transportRequestId"},
},
},
},

View File

@@ -296,8 +296,8 @@ func transportRequestUploadSOLMANMetadata() config.StepData {
Name: "commonPipelineEnvironment",
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"Name": "custom/changeDocumentId"},
{"Name": "custom/transportRequestId"},
{"name": "custom/changeDocumentId"},
{"name": "custom/transportRequestId"},
},
},
},

View File

@@ -793,15 +793,15 @@ func whitesourceExecuteScanMetadata() config.StepData {
Name: "commonPipelineEnvironment",
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"Name": "custom/whitesourceProjectNames"},
{"name": "custom/whitesourceProjectNames"},
},
},
{
Name: "influx",
Type: "influx",
Parameters: []map[string]interface{}{
{"Name": "step_data"}, {"fields": []map[string]string{{"name": "whitesource"}}},
{"Name": "whitesource_data"}, {"fields": []map[string]string{{"name": "vulnerabilities"}, {"name": "major_vulnerabilities"}, {"name": "minor_vulnerabilities"}, {"name": "policy_violations"}}},
{"name": "step_data", "fields": []map[string]string{{"name": "whitesource"}}},
{"name": "whitesource_data", "fields": []map[string]string{{"name": "vulnerabilities"}, {"name": "major_vulnerabilities"}, {"name": "minor_vulnerabilities"}, {"name": "policy_violations"}}},
},
},
},

View File

@@ -340,7 +340,7 @@ func xsDeployMetadata() config.StepData {
Name: "commonPipelineEnvironment",
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"Name": "operationId"},
{"name": "operationId"},
},
},
},