Hi,
I’m wondering if there is any way to configure the path of the generated folder “.scannerwork” by the sonar scanner.
The problem is that when I want to make two scans in parallel, both scans are generating the same folder in the same path and that throws the error:
“Another SonarQube analysis is already in progress for this project”
Thanks,
Agustin
janos
(Janos Gyerik)
April 29, 2019, 12:08pm
2
You can set -Dsonar.working.directory=some/path
to override the default “.scannerwork” with “some/path”.
purefan
(Purefan)
August 13, 2019, 9:52am
3
This deletes the folder if it already exists, not the files, the actual folder. Be careful.
@janos any clue on how to recover the folder that sonar.working.directory
overwrote? Running ubuntu 18.04
janos
(Janos Gyerik)
August 13, 2019, 10:53am
4
@purefan The scanner doesn’t keep a backup of it before deleting. I’m afraid your only options are whatever backup solutions are provided by your environment.
purefan
(Purefan)
August 13, 2019, 10:57am
5
Lesson learned. Thanks anyways