Closed bseiller closed 5 years ago
could you show debug logs when you provide Node location via pom? what is the value for this property? may be it is not compatible with pom.xml somehow
While setting up a minimal, reproducible example I reevaluated every step and at least in the context of the minimal example it seems this problem is no longer reproducible, possibly there was is an error in the original path - but another noteworthy bug surfaced. I'll create a new ticket for this and upload the example project and the associated debug log. Thank you for asking the right questions!
We are running a multi-module maven build via Jenkins, one child module contains a Angular/TypeScript setup, pretty much like this
We are starting the sonar analysis via
mvn sonar:sonar
. Settingsonar.typescript.node
(the path to the node.js executable for the TS analysis) is not possible via settings.xml or via (root or child) pom.xml. Trying to do so results in the log output below. Setting it via-Dsonar.typescript.node
directly in the maven goalsmvn sonar:sonar -Dsonar.typescript.node=...
gets the TS analysis running. We also tried this directly via shell, so Jenkins is not the culprit.Other sonar-properties can be set just fine via pom.xml, e.g.
sonar.sources
,sonar.host.url
... Could this be a regression of #304?SonarTS version: 1.9 (build 3766)
Node.js version: v8.11.1
TypeScript version: 2.7.2
SonarQube version: Version 7.9 (build 26994)
Logs
Expected behavior Setting sonar.typescript.node via (maven) settings.xml and via parent and child pom.xml should be possible and result in a working TS analysis.