Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Parameters are supplied to the gerrit job via the usual  YAML file in the ci-management repo. The following is an example set of paraemters parameters for the scanner job.

Code Block
languageyml
themeEmacs
titleSample sonar analysis job setup
linenumberstrue
      
       - project:
         <<: *mc_common
         name: ric-app-mc-sonarqube
         project-name: ric-app-mc
         cmake-opts: ""
         make-opts: test ARGS=-V
         sonar-project-file: ""
         sonar-properties: |
             sonar.login={sonarcloud_api_token}
             sonar.projectKey={sonarcloud_project_organization}_{project-name}
             sonar.projectName={project-name}
             sonar.organization={sonarcloud_project_organization}
             sonar.build.sourceEncoding=UTF-8
             sonar.sources=sidecars/listener/src
             sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
             sonar.cfamily.gcov.reportsPath=sidecars/listener
             sonar.cfamily.threads=2
         jobs:
           - gerrit-cmake-sonarqube
 

...