我們有一個檢查PL/SQL存儲過程更改爲TFS的過程,然後使用Jenkins作業使用SonarQube PL/SQL插件分析它們。我發現它總是索引所有文件(162)。 SonarQube Runner如何將結果更新到數據庫?刪除現有的並創建一個新的,或增量更新?是SonarQube分析增量還是?
Getting version 'C378149' to 'D:\public_jendevslave_1\workspace\DevOps\SonarQube-PLSQL-TFS'...
Finished getting version 'C378149'.
[SonarQube-PLSQL-TFS] $ D:\sonar-runner\sonar-runner-2.4\bin\sonar-runner.bat -e -Dsonar.jdbc.url=jdbc:postgresql://ip:5432/sonar ******** ******** -Dsonar.host.url=http://sonarqube.dev.com/ ******** ******** -Dsonar.projectBaseDir=D:\public_jendevslave_1\workspace\DevOps\SonarQube-PLSQL-TFS -Dsonar.language=plsql "-Dsonar.projectName=PL/SQL :: Schedule Snapshot 2013 :: EDBDEV" -Dsonar.projectVersion=1.0 -Dsonar.sourceEncoding=UTF-8 -Dsonar.projectKey=PLSQL.EDBDEV -Dsonar.sources=ACCT/PROCEDURE,ADMIN/PROCEDURE,ADMINDBA/PROCEDURE,DMBO/PROCEDURE,DS/PROCEDURE,EQDRV/PROCEDURE,ETL/PROCEDURE,FAME/PROCEDURE,FIQR/PROCEDURE,FIRVFO/PROCEDURE,GLOBAL/PROCEDURE,IPA/PROCEDURE,IT/PROCEDURE,MKT/PROCEDURE,MREF/PROCEDURE,OMS/SEQUENCE,PA/PROCEDURE,PA_UAT/PROCEDURE,PCONFO/PROCEDURE,PRC/PROCEDURE,REC/PROCEDURE,RISK/PROCEDURE,VREP/SEQUENCE
D:\sonar-runner\sonar-runner-2.4
SonarQube Runner 2.4
Java 1.8.0_31 Oracle Corporation (64-bit)
Windows Server 2012 R2 6.3 amd64
INFO: Error stacktraces are turned on.
INFO: Runner configuration file: D:\sonar-runner\sonar-runner-2.4\conf\sonar-runner.properties
INFO: Project configuration file: NONE
INFO: Default locale: "en_US", source code encoding: "UTF-8"
INFO: Work directory: D:\public_jendevslave_1\workspace\DevOps\SonarQube-PLSQL-TFS\.sonar
INFO: SonarQube Server 5.1
14:28:24.824 INFO - Load global repositories
14:28:25.315 INFO - Load global repositories (done) | time=498ms
14:28:25.321 INFO - Server id: 20160208114216
14:28:25.327 INFO - User cache: C:\Users\svc_selfserv_dev\.sonar\cache
14:28:25.350 INFO - Install plugins
14:28:25.826 INFO - Install JDBC driver
14:28:25.838 INFO - Create JDBC datasource for jdbc:postgresql://ip:5432/sonar
14:28:27.873 INFO - Initializing Hibernate
14:28:29.618 INFO - views plugin licensed to OTPP, EVALUATION [Expiration: 2016-02-19, Server: *]
14:28:30.213 INFO - Load project repositories
14:28:31.117 INFO - Load project repositories (done) | time=904ms
14:28:31.118 INFO - Load project settings
14:28:31.937 INFO - Load technical debt model
14:28:32.033 INFO - Apply project exclusions
14:28:33.795 WARN - SCM provider autodetection failed. No SCM provider claims to support this project. Please use sonar.scm.provider to define SCM of your project.
14:28:33.799 INFO - ------------- Scan PL/SQL :: Schedule Snapshot 2013 :: EDBDEV
14:28:33.832 INFO - Load module settings
14:28:34.298 INFO - Language is forced to plsql
14:28:34.324 INFO - Load rules
14:28:34.945 INFO - Base dir: D:\public_jendevslave_1\workspace\DevOps\SonarQube-PLSQL-TFS
14:28:34.946 INFO - Working dir: D:\public_jendevslave_1\workspace\DevOps\SonarQube-PLSQL-TFS\.sonar
14:28:34.958 INFO - Source paths: ACCT/PROCEDURE, ADMIN/PROCEDURE, ADMINDBA/PROCEDURE, DMBO/PROCEDURE, DS/PROCEDURE, EQDRV/PROCEDURE, ETL/PROCEDURE, FAME/PROCEDURE, FIQR/PROCEDURE, FIRVFO/PROCEDURE, GLOBAL/PROCEDURE, IPA/PROCEDURE, IT/PROCEDURE, MKT/PROCEDURE, MREF/PROCEDURE, OMS/SEQUENCE, PA/PROCEDURE, PA_UAT/PROCEDURE, PCONFO/PROCEDURE, PRC/PROCEDURE, REC/PROCEDURE, RISK/PROCEDURE, VREP/SEQUENCE
14:28:34.959 INFO - Source encoding: UTF-8, default locale: en_US
14:28:34.959 INFO - Index files
14:28:35.274 INFO - 162 files indexed
14:28:37.459 INFO - Quality profile for plsql: Sonar way
14:28:38.372 INFO - JIRA issues sensor will not run as some parameters are missing.
14:28:38.409 INFO - plsql EVALUATION [Expiration: 2016-02-19, Server: *]
14:28:38.410 INFO - Sensor Lines Sensor
14:28:38.528 INFO - Sensor Lines Sensor (done) | time=118ms
14:28:38.529 INFO - Sensor QProfileSensor
14:28:38.536 INFO - Sensor QProfileSensor (done) | time=7ms
14:28:38.536 INFO - Sensor InitialOpenIssuesSensor
14:28:39.221 INFO - Sensor InitialOpenIssuesSensor (done) | time=685ms
14:28:39.222 INFO - Sensor ProjectLinksSensor
14:28:39.236 INFO - Sensor ProjectLinksSensor (done) | time=14ms
14:28:39.236 INFO - Sensor VersionEventsSensor
14:28:39.255 INFO - Sensor VersionEventsSensor (done) | time=19ms
14:28:39.255 INFO - Sensor [email protected]
14:28:39.319 INFO - 162 source files to be analyzed
14:28:39.823 WARN -
14:28:39.824 WARN - Unable to fully parse: D:\public_jendevslave_1\workspace\DevOps\SonarQube-PLSQL-TFS\ADMIN\PROCEDURE\WINDOWS_MONITOR_FILE_SYS.prc
14:28:39.824 WARN - Parse error starting from line 1
14:28:39.824 WARN -
14:28:41.390 INFO - Sensor [email protected] (done) | time=2135ms
14:28:41.390 INFO - Sensor SCM Sensor
14:28:41.391 INFO - No SCM system was detected. You can use the 'sonar.scm.provider' property to explicitly specify it.
14:28:41.391 INFO - Sensor SCM Sensor (done) | time=1ms
14:28:41.391 INFO - Sensor CPD Sensor
14:28:41.391 INFO - DefaultCpdEngine is used for plsql
14:28:41.392 INFO - Cross-project analysis enabled
14:28:41.399 INFO - 162/162 source files have been analyzed
14:28:46.099 INFO - Sensor CPD Sensor (done) | time=4708ms
14:28:46.101 INFO - No quality gate is configured.
14:28:46.194 INFO - Compare to previous analysis (2016-02-08)
14:28:46.206 INFO - Compare over 30 days (2016-01-09, analysis of Thu Feb 04 16:28:50 EST 2016)
14:28:46.764 INFO - Execute decorators...
14:28:50.496 INFO - Store results in database
14:28:55.612 INFO - Analysis reports generated in 1041ms, dir size=1016 KB
14:28:58.352 INFO - Analysis reports compressed in 2738ms, zip size=360 KB
14:28:58.605 INFO - Analysis reports sent to server in 253ms
14:28:58.605 INFO - ANALYSIS SUCCESSFUL, you can browse http://sonarqube.dev/dashboard/index/PLSQL.EDBDEV
14:28:58.605 INFO - Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report.
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
Total time: 35.693s
Final Memory: 20M/621M
INFO: ------------------------------------------------------------------------
Started calculate disk usage of build
Finished Calculation of disk usage of build in 0 seconds
Started calculate disk usage of workspace
Finished Calculation of disk usage of workspace in 1 second
Finished: SUCCESS