From dac841636d7872b5f1028909a226b2d32b671a05 Mon Sep 17 00:00:00 2001 From: Houa Yang Date: Fri, 30 Aug 2019 09:23:08 -0500 Subject: [PATCH] Add Sonar plug-in configurations to docs Add documentation for configuring the Jenkins Sonarqube Scanner plug-in. Signed-off-by: Houa Yang Change-Id: I21b21efc6cefa3f4f643a0235d670c6e1ec4ac08 --- docs/jjb/lf-ci-jobs.rst | 13 +++++++++++++ docs/jjb/lf-macros.rst | 4 +++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/docs/jjb/lf-ci-jobs.rst b/docs/jjb/lf-ci-jobs.rst index 1d3e6c10..9883dd7a 100644 --- a/docs/jjb/lf-ci-jobs.rst +++ b/docs/jjb/lf-ci-jobs.rst @@ -814,6 +814,19 @@ Sonar Runs Jenkins Sonarqube plug-in to review for bugs, code smells, and security vulnerabilities. +Requires ``SonarQube Scanner for Jenkins`` + +Plug-in configurations + Manage Jenkins --> Configure System --> SonarQube servers + - Name: Sonar (fixed) + - Server URL: https://sonar.server.org/ + - Server authentication token: none + + Manage Jenkins --> Global Tool Configuration --> SonarQube Scanner + - Name: SonarQube Scanner (fixed) + - Install automatically + - Select latest version + :Template Names: - {project-name}-sonar diff --git a/docs/jjb/lf-macros.rst b/docs/jjb/lf-macros.rst index b17328ad..1b1b9765 100644 --- a/docs/jjb/lf-macros.rst +++ b/docs/jjb/lf-macros.rst @@ -280,7 +280,9 @@ Forcibly removes all of the docker images. lf-infra-sonar --------------- -Runs Jenkins Sonar plug-in +Runs Jenkins SonarQube plug-in. + +Requires ``SonarQube Scanner for Jenkins`` :Optional Parameters: :sonar-task: Sonar task to run. (default: "") -- 2.16.6