我已经配置了三个项目,其中两个项目每次Jenkins部署到开发环境时都按预期更新.但是,当第三个作业填充初始结果时,尽管SonarRunner成功执行,但每次后续运行都不会更新项目.(我擦过了一些名字和路径).
这是失败的作业项目文件:#required metaar.projectKey = xxxxxxx sonar.projectName = xxxxxxx sonar.projectVersion = 1.0
# path to source directories (required)
sonar.sources=src
# paths to exclude
#sonar.exclusions=
sonar.scm.disabled=true
sonar.javascript.mode=skip
sonar.css.mode=skip
# Encoding of the source code
sonar.sourceEncoding=UTF-8
Run Code Online (Sandbox Code Playgroud)
这是Jenkins的控制台输出:
SonarQube Runner 2.4
Java 1.7.0_71 Oracle Corporation (64-bit)
Linux 2.6.32-504.3.3.el6.x86_64 amd64
INFO: Error stacktraces are turned on.
INFO: Runner configuration file: xxxxxxxx/sonar-runner.properties
INFO: Project configuration file: NONE
INFO: Default locale: "en_US", source code encoding: "UTF-8"
INFO: Work directory: xxxxxxx/workspace/.sonar
INFO: SonarQube Server 5.1
12:29:29.558 INFO - …Run Code Online (Sandbox Code Playgroud)