Indeed. JENKINS_HOME is the key. If Jenkins does not find this env variable on startup, it will create a new home in the startup user account.
On Monday, November 21, 2016 at 9:31:08 AM UTC-5, Andreas Hetz wrote: > > Dear Jerome, > > thank you so much. > > Finally i was able to solve the problem. I followed you instruction and to > set the JENKINS_HOME env made it. > > Feel free to contact me any time [email protected] <javascript:> if you > have questions about your Jenkins issues. > > Best, > Andreas > > *CLOSED > > > > 2016-11-16 17:51 GMT+01:00 <[email protected] <javascript:>>: > >> my Jenkins managed part is as follow: >> >> Home Directory: c:\Jenkins >> Workspace RootDirectory: d:/JenkinsWorkspace/${ITEM_FULL_NAME} >> Build Record Root Directory: ${ITEM_ROOTDIR}/builds >> >> Assuming the above: >> Your jobs info should be locate into C:/Jenkins/jobs >> The system no matter what should them from this emplacement, make sure >> this folder is accessible by both user. This is THE folder with the jobs >> configuration and settings. It also contain the jobs results. I >> successfully exported those and restore them into another Jenkins. >> >> You may want to check the log just to make sure that nothing went wrong >> with plugin version, etc... >> jenkins.err.log >> jenkins.out.log >> >> I always use the service, I changed the user of the service. So I always >> use the jenkins.xml to start the wars, your args seem to be right, the only >> thing I see into the file that may change something is the env setting: >> <env name="JENKINS_HOME" value="%BASE%"/> >> My guess is that you need to do the equivalent into your batch file. >> maybe make sure the env is set properly. Try to print both user environment >> to see the difference. But make sure to set this variables into the >> environment before launching: >> >> set JENKINS_HOME="c:\Jenkins" >> "C:\Program Files\Java\jre1.8.0_102\bin\java" -Xmx3048m -mx1024m -jar >> ${JENKINS_HOME}\jenkins.war >> >> Not sure it will change anythiong but worth the try. >> >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Jenkins Users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/jenkinsci-users/aJv17furBhs/unsubscribe >> . >> To unsubscribe from this group and all its topics, send an email to >> [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-users/fb14da6d-b3e3-49f6-af3e-7d9e8a850b9a%40googlegroups.com >> >> <https://groups.google.com/d/msgid/jenkinsci-users/fb14da6d-b3e3-49f6-af3e-7d9e8a850b9a%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Best, > Andreas > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/30a797ce-edbb-4391-9255-b53807bbd881%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
