-
Bitbucket Cloud
-
Team City
-
Scanner command used when applicable (private details masked)
-
verify -e -DskipTests org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=key -Dsonar.branch.name=1.0
-
Java
Hello
Suddenly, one of our builds is failing with the following error:
[ERROR] Not inside a Git work tree: D:\TeamCity\BuildAgent02\work\79fc6d4ae4d109c1
When the command is executed from a local checkout branch, there is no issue. However, as soon as it is executed from a build in TeamCity, it fails with the error.
At the moment, I have added the parameter Dsonar.scm.disabled=true
to solve the issue until I locate the root cause.
How will this affect the scanning results?