You've already forked sap-jenkins-library
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:
committed by
GitHub
parent
8634d8bb12
commit
30aa6eea7d
@@ -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"},
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user