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

fix(sonar): fix file patterns for gcs upload (#3406)

Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
This commit is contained in:
Siarhei Pazdniakou
2022-01-12 15:06:14 +03:00
committed by GitHub
parent 8634d8bb12
commit 30aa6eea7d
2 changed files with 6 additions and 6 deletions

View File

@@ -60,8 +60,8 @@ func (p *sonarExecuteScanReports) persist(stepConfig sonarExecuteScanOptions) {
return
}
content := []gcs.ReportOutputParam{
{FilePattern: "sonarscan.json", ParamRef: "", StepResultType: "sonarqube"},
{FilePattern: "sonarExecuteScan_*.json", ParamRef: "", StepResultType: "sonarqube"},
{FilePattern: "**/sonarscan.json", ParamRef: "", StepResultType: "sonarqube"},
{FilePattern: "**/sonarscan-result.json", ParamRef: "", StepResultType: "sonarqube"},
}
envVars := []gcs.EnvVar{
{Name: "GOOGLE_APPLICATION_CREDENTIALS", Value: GeneralConfig.GCPJsonKeyFilePath, Modified: false},
@@ -566,8 +566,8 @@ func sonarExecuteScanMetadata() config.StepData {
Name: "reports",
Type: "reports",
Parameters: []map[string]interface{}{
{"filePattern": "sonarscan.json", "type": "sonarqube"},
{"filePattern": "sonarExecuteScan_*.json", "type": "sonarqube"},
{"filePattern": "**/sonarscan.json", "type": "sonarqube"},
{"filePattern": "**/sonarscan-result.json", "type": "sonarqube"},
},
},
{