1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-20 05:19:40 +02:00

fix(influx): correct project_name field name (#2195)

* Update checkmarx.yaml

* regenerate

* adjust code
This commit is contained in:
Christopher Fenner 2020-10-19 13:09:17 +02:00 committed by GitHub
parent d8cb491524
commit b8d3a7d1a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -311,7 +311,7 @@ func reportToInflux(results map[string]interface{}, influx *checkmarxExecuteScan
influx.checkmarx_data.fields.owner = results["Owner"].(string)
influx.checkmarx_data.fields.scan_id = results["ScanId"].(string)
influx.checkmarx_data.fields.project_id = results["ProjectId"].(string)
influx.checkmarx_data.fields.project_name = results["ProjectName"].(string)
influx.checkmarx_data.fields.projectName = results["ProjectName"].(string)
influx.checkmarx_data.fields.team = results["Team"].(string)
influx.checkmarx_data.fields.team_full_path_on_report_date = results["TeamFullPathOnReportDate"].(string)
influx.checkmarx_data.fields.scan_start = results["ScanStart"].(string)

View File

@ -75,7 +75,7 @@ type checkmarxExecuteScanInflux struct {
owner string
scan_id string
project_id string
project_name string
projectName string
team string
team_full_path_on_report_date string
scan_start string
@ -132,7 +132,7 @@ func (i *checkmarxExecuteScanInflux) persist(path, resourceName string) {
{valType: config.InfluxField, measurement: "checkmarx_data", name: "owner", value: i.checkmarx_data.fields.owner},
{valType: config.InfluxField, measurement: "checkmarx_data", name: "scan_id", value: i.checkmarx_data.fields.scan_id},
{valType: config.InfluxField, measurement: "checkmarx_data", name: "project_id", value: i.checkmarx_data.fields.project_id},
{valType: config.InfluxField, measurement: "checkmarx_data", name: "project_name", value: i.checkmarx_data.fields.project_name},
{valType: config.InfluxField, measurement: "checkmarx_data", name: "projectName", value: i.checkmarx_data.fields.projectName},
{valType: config.InfluxField, measurement: "checkmarx_data", name: "team", value: i.checkmarx_data.fields.team},
{valType: config.InfluxField, measurement: "checkmarx_data", name: "team_full_path_on_report_date", value: i.checkmarx_data.fields.team_full_path_on_report_date},
{valType: config.InfluxField, measurement: "checkmarx_data", name: "scan_start", value: i.checkmarx_data.fields.scan_start},

View File

@ -271,7 +271,7 @@ spec:
- name: owner
- name: scan_id
- name: project_id
- name: project_name
- name: projectName
- name: team
- name: team_full_path_on_report_date
- name: scan_start