From a76b20f09f6c93cc0857c818f60c5d3864c2ff4d Mon Sep 17 00:00:00 2001 From: Srinikitha Kondreddy Date: Wed, 17 May 2023 09:24:27 +0200 Subject: [PATCH] Upgrade sonar scanner cli image version to 4.8 (#4362) * Uprade sonar scanner cli version to 4.8 * Update download url --- cmd/sonarExecuteScan_generated.go | 6 +++--- resources/metadata/sonarExecuteScan.yaml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/sonarExecuteScan_generated.go b/cmd/sonarExecuteScan_generated.go index db19d3e1d..5b1fe6410 100644 --- a/cmd/sonarExecuteScan_generated.go +++ b/cmd/sonarExecuteScan_generated.go @@ -244,7 +244,7 @@ func addSonarExecuteScanFlags(cmd *cobra.Command, stepConfig *sonarExecuteScanOp cmd.Flags().StringVar(&stepConfig.Token, "token", os.Getenv("PIPER_token"), "Token used to authenticate with the Sonar Server.") cmd.Flags().StringVar(&stepConfig.Organization, "organization", os.Getenv("PIPER_organization"), "SonarCloud.io only: Organization that the project will be assigned to in SonarCloud.io.") cmd.Flags().StringSliceVar(&stepConfig.CustomTLSCertificateLinks, "customTlsCertificateLinks", []string{}, "List of download links to custom TLS certificates. This is required to ensure trusted connections to instances with custom certificates.") - cmd.Flags().StringVar(&stepConfig.SonarScannerDownloadURL, "sonarScannerDownloadUrl", `https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.6.2.2472-linux.zip`, "URL to the sonar-scanner-cli archive.") + cmd.Flags().StringVar(&stepConfig.SonarScannerDownloadURL, "sonarScannerDownloadUrl", `https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.8.0.2856-linux.zip`, "URL to the sonar-scanner-cli archive.") cmd.Flags().StringVar(&stepConfig.VersioningModel, "versioningModel", `major`, "The versioning model used for the version when reporting the results for the project.") cmd.Flags().StringVar(&stepConfig.Version, "version", os.Getenv("PIPER_version"), "The project version that is reported to SonarQube.") cmd.Flags().StringVar(&stepConfig.CustomScanVersion, "customScanVersion", os.Getenv("PIPER_customScanVersion"), "A custom version used along with the uploaded scan results.") @@ -357,7 +357,7 @@ func sonarExecuteScanMetadata() config.StepData { Type: "string", Mandatory: false, Aliases: []config.Alias{}, - Default: `https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.6.2.2472-linux.zip`, + Default: `https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.8.0.2856-linux.zip`, }, { Name: "versioningModel", @@ -586,7 +586,7 @@ func sonarExecuteScanMetadata() config.StepData { }, }, Containers: []config.Container{ - {Name: "sonar", Image: "sonarsource/sonar-scanner-cli:4.7", Options: []config.Option{{Name: "-u", Value: "0"}}}, + {Name: "sonar", Image: "sonarsource/sonar-scanner-cli:4.8", Options: []config.Option{{Name: "-u", Value: "0"}}}, }, Outputs: config.StepOutputs{ Resources: []config.StepResources{ diff --git a/resources/metadata/sonarExecuteScan.yaml b/resources/metadata/sonarExecuteScan.yaml index 6e124e374..545af96fa 100644 --- a/resources/metadata/sonarExecuteScan.yaml +++ b/resources/metadata/sonarExecuteScan.yaml @@ -72,7 +72,7 @@ spec: - name: sonarScannerDownloadUrl type: string description: "URL to the sonar-scanner-cli archive." - default: "https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.6.2.2472-linux.zip" + default: "https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.8.0.2856-linux.zip" scope: - PARAMETERS - STAGES @@ -310,7 +310,7 @@ spec: type: int containers: - name: sonar - image: sonarsource/sonar-scanner-cli:4.7 + image: sonarsource/sonar-scanner-cli:4.8 options: - name: -u value: "0"