Skip to content

Commit 9b791e9

Browse files
committed
limiting scan to electron and webui subdirectories
1 parent 865802b commit 9b791e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Jenkinsfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ pipeline {
153153
sonarscanner_config_file = "${sonarscanner_install_dir}/conf/sonar-scanner.properties"
154154
electron_coverage = "${WORKSPACE}/electron/coverage/lcov.info"
155155
webui_coverage = "${WORKSPACE}/webui/coverage/lcov.info"
156+
electron_sources = "${WORKSPACE}/electron/app/**/*"
157+
webui_sources = "${WORKSPACE}/webui/src/**/*"
158+
wktui_sources = "${electron_sources},${webui_sources}"
156159
lcov_report_paths = "${electron_coverage},${webui_coverage}"
157160
}
158161
steps {
@@ -171,6 +174,7 @@ pipeline {
171174
echo "sonar.c.file.suffixes=-" >> ${sonarscanner_config_file}
172175
echo "sonar.cpp.file.suffixes=-" >> ${sonarscanner_config_file}
173176
echo "sonar.objc.file.suffixes=-" >> ${sonarscanner_config_file}
177+
echo "sonar.sources=${wktui_sources} >> ${sonarscanner_config_file}
174178
cat "${sonarscanner_config_file}"
175179
176180
SONAR_SCANNER_OPTS="-server -Dhttps.proxyHost=${WKTUI_PROXY_HOST} -Dhttps.proxyPort=${WKTUI_PROXY_PORT} -Dsonar.login=${SONAR_AUTH_TOKEN}"

0 commit comments

Comments
 (0)