Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,7 @@ jobs:

| Environment Variable | Description | Default |
|----------------------|----------------------------|---------|
| `SQ_SCANNER_VERSION` | SonarQube scanner version. | '4.3.0' |
| `SQ_SCANNER_VERSION` | SonarQube scanner version. | '5.1.0' |

See also [`config-npm`](#config-npm) input environment variables.

Expand Down Expand Up @@ -1408,7 +1408,7 @@ jobs:
| Environment Variable | Description | Default |
|----------------------|--------------------------------------------------------------------------------------|---------|
| `BUILD_NUMBER` | If present, it will be reused by the [`get-build-number`](#get-build-number) action. | |
| `SQ_SCANNER_VERSION` | SonarQube scanner version. | '4.3.0' |
| `SQ_SCANNER_VERSION` | SonarQube scanner version. | '5.1.0' |

### Inputs

Expand Down
4 changes: 2 additions & 2 deletions build-maven/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
# - SKIP_BUILD: If true, run Sonar analysis using existing target/ output without compiling,
# testing or deploying (default: false)
# - SONAR_SCANNER_JAVA_OPTS: JVM options for SonarQube scanner (e.g. -Xmx512m)
# - SCANNER_VERSION: SonarQube Maven plugin version (default: 5.6.0.6792)
# - SCANNER_VERSION: SonarQube Maven plugin version (default: 5.9.0.7382)
# - USER_MAVEN_ARGS: Additional arguments to pass to Maven
# shellcheck source-path=SCRIPTDIR

Expand Down Expand Up @@ -66,7 +66,7 @@ readonly DEPLOYED_OUTPUT_KEY="deployed"
export BUILD_ID=$BUILD_NUMBER

# SonarQube parameters
: "${SCANNER_VERSION:=5.6.0.6792}"
: "${SCANNER_VERSION:=5.9.0.7382}"
readonly SONAR_GOAL="org.sonarsource.scanner.maven:sonar-maven-plugin:${SCANNER_VERSION}:sonar"

# CALLBACK IMPLEMENTATION: SonarQube scanner execution
Expand Down
4 changes: 2 additions & 2 deletions build-npm/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# - DEPLOY: Whether to deploy (default: true)
# - DEPLOY_PULL_REQUEST: Whether to deploy pull request artifacts (default: false)
# - SKIP_TESTS: Whether to skip running tests (default: false)
# - SQ_SCANNER_VERSION: Version of sonarqube-scanner to use (default: 4.3.0)
# - SQ_SCANNER_VERSION: Version of sonarqube-scanner to use (default: 5.1.0)
Comment thread
gitar-bot[bot] marked this conversation as resolved.
Resolved

# shellcheck source-path=SCRIPTDIR

Expand All @@ -48,7 +48,7 @@ if [[ "${DEPLOY:=true}" != "false" && "$RUN_SHADOW_SCANS" != "true" ]]; then
: "${ARTIFACTORY_DEPLOY_ACCESS_TOKEN:?}"
fi
require_sonar_env
: "${SKIP_TESTS:=false}" "${BUILD_NAME:?}" "${PROJECT_VERSION:?}" "${CURRENT_VERSION:?}" "${SQ_SCANNER_VERSION:=4.3.0}"
: "${SKIP_TESTS:=false}" "${BUILD_NAME:?}" "${PROJECT_VERSION:?}" "${CURRENT_VERSION:?}" "${SQ_SCANNER_VERSION:=5.1.0}"
export DEPLOY DEPLOY_PULL_REQUEST SKIP_TESTS SQ_SCANNER_VERSION

git_fetch_unshallow() {
Expand Down
2 changes: 1 addition & 1 deletion build-yarn/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ source "$(dirname "${BASH_SOURCE[0]}")/../shared/common-functions.sh"
: "${ARTIFACTORY_URL:?}" "${ARTIFACTORY_USERNAME:?}" "${ARTIFACTORY_ACCESS_TOKEN:?}"
: "${ARTIFACTORY_DEPLOY_REPO:?}" "${DEPLOY_PULL_REQUEST:=false}" "${SKIP_TESTS:=false}" "${RUN_SHADOW_SCANS:?}"
: "${GITHUB_REF_NAME:?}" "${BUILD_NUMBER:?}" "${GITHUB_RUN_ID:?}" "${GITHUB_REPOSITORY:?}" "${GITHUB_EVENT_NAME:?}" "${GITHUB_SHA:?}"
: "${GITHUB_OUTPUT:?}" "${PULL_REQUEST?}" "${DEFAULT_BRANCH:?}" "${SQ_SCANNER_VERSION:=4.3.0}"
: "${GITHUB_OUTPUT:?}" "${PULL_REQUEST?}" "${DEFAULT_BRANCH:?}" "${SQ_SCANNER_VERSION:=5.1.0}"
if [[ "${DEPLOY:=true}" != "false" && "$RUN_SHADOW_SCANS" != "true" ]]; then
: "${ARTIFACTORY_DEPLOY_ACCESS_TOKEN:?}"
fi
Expand Down
4 changes: 2 additions & 2 deletions spec/build-maven_spec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export NEXT_TOKEN="next-token"
export SQC_US_TOKEN="sqc-us-token"
export SQC_EU_TOKEN="sqc-eu-token"
export RUN_SHADOW_SCANS="false"
export SCANNER_VERSION="5.6.0.6792"
export SCANNER_VERSION="5.9.0.7382"
export CURRENT_VERSION="1.2.3-SNAPSHOT"
export PROJECT_VERSION="1.2.3.42"

Expand Down Expand Up @@ -250,7 +250,7 @@ Describe 'run_sonar_scanner()'
When call sonar_scanner_implementation
The status should be success
The line 2 should include "mvn"
The line 2 should include "org.sonarsource.scanner.maven:sonar-maven-plugin:5.6.0.6792:sonar"
The line 2 should include "org.sonarsource.scanner.maven:sonar-maven-plugin:5.9.0.7382:sonar"
The line 2 should include "-Dsonar.host.url=https://test.sonarqube.com"
The line 2 should include "-Dsonar.token=test-token"
The line 2 should include "-Dsonar.projectVersion=1.2.3-SNAPSHOT"
Expand Down
Loading