submodule-recursive: "{submodule-recursive}"
submodule-timeout: "{submodule-timeout}"
submodule-disable: "{submodule-disable}"
- choosing-strategy: default
+ choosing-strategy: gerrit
- job-template:
name: "{project-name}-sonar-prescan-script"
--- /dev/null
+---
+fixes:
+ - |
+ Fix shell script maven-sonar.sh to handle parameter $SCAN_DEV_BRANCH
+ as string and not as boolean, so we can achieve the desired IF logic
--- /dev/null
+---
+fixes:
+ - |
+ gerrit-maven-sonar-verify was using the "default" branch choosing strategy,
+ which pulls master, rather than the "gerrit" strategy for pulling feature
+ branches.
params+=("-Dsonar.projectKey=$PROJECT_KEY")
params+=("-Dsonar.organization=$PROJECT_ORGANIZATION")
params+=("-Dsonar.login=$API_TOKEN")
- if $SCAN_DEV_BRANCH; then
+ if [ "$SCAN_DEV_BRANCH" = "True" ]; then
echo "Will scan short lived branch ..."
# shellcheck disable=SC2236
if [ ! -z ${GERRIT_CHANGE_NUMBER+x} ]; then