Reputation: 448
I am having a strange issue with my Jenkins (1.646) were by when I run;
Java -jar %~dp0jenkins.war% --httpPort=XXXX
from the command line Jenkins runs and it seems to create a whole new instance under my user folder and doesn't read any files located under C:\.jenkins
and importantly completely misses the;
config.xml file (located .jenkins)
Thankful for any help/pointers
Upvotes: 1
Views: 1725
Reputation: 448
I have managed to fix this issue by setting the environment variable JENKINS_HOME
to c:\.jenkins
.
When I then run the java -jar %~dp0jenkins.war%....
batch file it now correctly picks up the config.xml
Upvotes: 1