Skip to content

Commit

Permalink
Update SonarQube to version 10.8 (#1310)
Browse files Browse the repository at this point in the history
  • Loading branch information
BraisVQ authored Dec 10, 2024
1 parent 39a7dae commit aa7babd
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
version: ['10.6.0'] # 9.9 = LTS
edition: ['community', 'developer', 'enterprise']
version: ['10.8.0'] # 9.9 = LTS
edition: ['developer', 'enterprise']
steps:
-
name: Checkout repository
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@

### Changed
- Webhook Proxy maintenance ([#1298](https://github.com/opendevstack/ods-core/pull/1298))
- Update SonarQube to 10.x non LTS ([#1300](https://github.com/opendevstack/ods-core/issues/1300))
- Update SonarQube to 10.6 non LTS ([#1300](https://github.com/opendevstack/ods-core/issues/1300))
- Update Nexus to version 3.70.3 ([#1298](https://github.com/opendevstack/ods-core/pull/1308))
- Jenkins maintenance ([#1299](https://github.com/opendevstack/ods-core/pull/1299)) and update java version in Jenkins ([#1295](https://github.com/opendevstack/ods-core/issues/1295))
- Update SonarQube to 10.8 non LTS ([#1310](https://github.com/opendevstack/ods-core/pull/1310))

### Fixed

Expand Down
6 changes: 3 additions & 3 deletions configuration-sample/ods-core.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,12 @@ SONAR_DATABASE_USER=sonarqube
# See https://www.sonarsource.com/plans-and-pricing/.
# - Use "community" for free edition
# - Use "developer", "enterprise" or "datacenter" for commercial editions
SONAR_EDITION=community
SONAR_EDITION=developer
# SonarQube version.
# See Dockerhub https://hub.docker.com/_/sonarqube/tags
# Officially supported is:
# - 10.6.0
SONAR_VERSION=10.6.0
# - 10.8.0
SONAR_VERSION=10.8.0

# SonarQube memory and CPU resources
SONARQUBE_CPU_REQUEST=200m
Expand Down
2 changes: 1 addition & 1 deletion jenkins/agent-base/Dockerfile.ubi8
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM quay.io/openshift/origin-jenkins-agent-base

SHELL ["/bin/bash", "-o", "pipefail", "-c"]

ENV SONAR_SCANNER_VERSION=6.1.0.4477 \
ENV SONAR_SCANNER_VERSION=6.2.1.4610 \
CNES_REPORT_VERSION=5.0.0 \
TAILOR_VERSION=1.3.4 \
SOPS_VERSION=3.9.0 \
Expand Down
2 changes: 1 addition & 1 deletion sonarqube/chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ version: 1.1.1
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "10.6.0"
appVersion: "10.8.0"
8 changes: 5 additions & 3 deletions sonarqube/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
ARG sonarVersion=10.6.0
ARG sonarEdition=community
ARG sonarVersion=10.8.0
ARG sonarEdition=developer

# For community edition use the following:
# FROM sonarqube:lts-community
FROM sonarqube:${sonarVersion}-${sonarEdition}

ARG APP_DNS
Expand All @@ -23,7 +25,7 @@ RUN mkdir -p /opt/configuration/sonarqube/plugins
# Language plugins not bundled
ADD https://github.com/Inform-Software/sonar-groovy/releases/download/1.8/sonar-groovy-plugin-1.8.jar /opt/configuration/sonarqube/plugins/
ADD https://github.com/Merck/sonar-r-plugin/releases/download/0.2.2/sonar-r-plugin-0.2.2.jar /opt/configuration/sonarqube/plugins/
ADD https://github.com/elegoff/sonar-rust/releases/download/v0.2.4/community-rust-plugin-0.2.4.jar /opt/configuration/sonarqube/plugins/
ADD https://github.com/elegoff/sonar-rust/releases/download/v0.2.5/community-rust-plugin-0.2.5.jar /opt/configuration/sonarqube/plugins/

COPY run.sh $SONARQUBE_HOME/bin/

Expand Down
8 changes: 4 additions & 4 deletions sonarqube/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ODS_CORE_DIR=${SCRIPT_DIR%/*}
ODS_CONFIGURATION_DIR="${ODS_CORE_DIR}/../ods-configuration"

SONAR_VERSION=10.6.0
SONAR_EDITION="community"
SONAR_VERSION=10.8.0
SONAR_EDITION="developer"

function usage {
printf "Test SonarQube setup.\n\n"
printf "\t-h|--help\t\tPrint usage\n"
printf "\t-v|--verbose\t\tEnable verbose mode\n"
printf "\t-s|--sq-version\t\tSonarQube version, e.g. '10.6.0' (defaults to %s)\n" "${SONAR_VERSION}"
printf "\t-s|--sq-version\t\tSonarQube version, e.g. '10.8.0' (defaults to %s)\n" "${SONAR_VERSION}"
printf "\t-e|--sq-edition\t\tSonarQube edition, e.g. 'community' or 'enterprise' (defaults to %s)\n" "${SONAR_EDITION}"
printf "\t-i|--insecure\t\tAllow insecure server connections when using SSL\n"
printf "\t--verify\t\tSkips setup of local docker container and instead checks existing sonarqube setup based on ods-core.env\n"
Expand Down Expand Up @@ -191,7 +191,7 @@ case $SONAR_EDITION in
community | developer | enterprise | datacenter)
expectedPlugins=("groovy:1.8"
"r:0.2.2"
"communityrust:0.2.4" )
"communityrust:0.2.5" )
;;

*)
Expand Down

0 comments on commit aa7babd

Please sign in to comment.