SonarQube tries to create cache on non existing drive

366 views
Skip to first unread message

Indirect...@gmx.de

unread,
Jan 16, 2017, 11:09:31 AM1/16/17
to SonarQube
I'm running SonarQube 5.1.2 on a Jenkins server with the SonarQube Scanner Plugin for Gradle.
 
Now I'm trying to set an automated execution for the ':sonarqube' task on the Jenkins server. I already tried the gradle project locally on my mashine and it works perfectly fine (All the test data gets uploaded to the Sonar Server). The gradle script is able to build and the ':sonarqube' task works, too. Now executing the task via Jenkins server throws the following exception:

FAILURE: Build failed with an exception.
 
* What went wrong:
Execution failed for task ':sonarqube'.
> Unable to create user cacheD:\sonar-work\user.home\cache

The problem is that there is no drive called "D:\". Is there any way to change the directory for the cache folder in SonarQube. My SONAR_USER_HOME is set to "C:\.jenkins\sonar-cache" but the folder stays empty.
 

G. Ann Campbell

unread,
Jan 17, 2017, 3:53:04 AM1/17/17
to SonarQube, Indirect...@gmx.de
Please don't cross-post here and on StackOverflow.


Ann
Reply all
Reply to author
Forward
0 new messages