-
Bug
-
Resolution: Won't Fix
-
Major
-
None
ServerTask.groovy sets the JENKINS_HOME system property as follows:
System.setProperty("JENKINS_HOME",conv.workDir.getAbsolutePath())
If the system property is already set to another value, that value is overwritten.
You can set the workDir option in build.gradle to change the value of JENKINS_HOME and to run Jenkins from a different directory:
... jenkinsPlugin { ... workDir = file('/tmp/jenkins') ... } ...