:install-prefix: CMAKE_INSTALL_PREFIX to use for install.
(default: $BUILD_DIR/output)
:make-opts: Parameters to pass to make. (default: '')
+ :pre-build: Shell script to run before performing build. Useful for
+ setting up dependencies. (default: '')
:sonar-additional-args: Command line arguments. (default: '')
:sonar-java-opts: JVM options. For example, use option -Xmx
to increase the memory size limit. (default: '')
- :sonar-prescan-script: A shell script to run before the build and scan.
- Useful for setting up dependencies. (default: '')
:sonar-project-file: The file name with Sonar configuration properties
(default: sonar-project.properties)
:sonar-properties: Sonar configuration properties. (default: '')
github-url: "https://github.com"
install-prefix: "$BUILD_DIR/output"
make-opts: ""
+ pre-build: ""
stream: master
submodule-recursive: true
submodule-timeout: 10
# Sonar properties
sonar-additional-args: ""
sonar-java-opts: ""
- sonar-prescan-script: ""
sonar-project-file: "sonar-project.properties"
sonar-properties: ""
sonar-task: ""
builders:
- lf-infra-pre-build
- - shell: "{sonar-prescan-script}"
+ - shell: "{pre-build}"
- shell: !include-raw-escape: ../shell/cmake-sonarqube.sh
- lf-infra-sonar:
sonar-task: "{sonar-task}"
concurrent: false
<<: *lf_cmake_sonarqube
+ ######################
+ # Default parameters #
+ ######################
+
+ gerrit_sonar_triggers:
+ - comment-added-contains-event:
+ comment-contains-value: '^Patch Set\s+\d+:\s+run-sonar\s*$'
+
scm:
- lf-infra-gerrit-scm:
branch: "$GERRIT_BRANCH"
- timed: "{obj:cron}"
- gerrit:
server-name: "{gerrit-server-name}"
- trigger-on:
- - comment-added-contains-event:
- comment-contains-value: '^Patch Set\s+\d+:\s+run-sonar\s*$'
+ trigger-on: "{obj:gerrit_sonar_triggers}"
projects:
- project-compare-type: "ANT"
project-pattern: "{project}"
concurrent: false
<<: *lf_tox_sonarqube
+ ######################
+ # Default parameters #
+ ######################
+
+ gerrit_sonar_triggers:
+ - comment-added-contains-event:
+ comment-contains-value: '^Patch Set\s+\d+:\s+run-sonar\s*$'
+
scm:
- lf-infra-gerrit-scm:
branch: "$GERRIT_BRANCH"
- timed: "{obj:cron}"
- gerrit:
server-name: "{gerrit-server-name}"
- trigger-on:
- - comment-added-contains-event:
- comment-contains-value: '^Patch Set\s+\d+:\s+run-sonar\s*$'
+ trigger-on: "{obj:gerrit_sonar_triggers}"
projects:
- project-compare-type: "ANT"
project-pattern: "{project}"
--- /dev/null
+---
+fixes:
+ - |
+ Revise templates gerrit-cmake-sonarqube and gerrit-tox-sonarqube
+ to move the triggering comment string into a parameter that can be
+ overridden in a job definition. Github comment remains hardcoded.
+ The default is still "run-sonar".
+
+ Rename gerrit-cmake-sonarqube tempplate configuration parameter
+ from sonar-prescan-script to pre-build to be consistent with
+ existing CMake stage and verify templates. This is a breaking
+ change for any early adopters of this new template.