Help | ReInstall Jenkins pointing to OLD JENKINS_HOME path

10 views
Skip to first unread message

LnT

unread,
May 2, 2017, 7:22:05 AM5/2/17
to Jenkins Users, Lakshmi Narayana Tenka

Hi ,

my legacy environment of jenkins(1.7) master is with and user called RobertoGa in Windows 7
And jenkins home is pointed to c:\Users\RobertoGa

Now the Jenkins master, 18 slaves and 200+ jobs ==> everything is @ jenkins home is pointed to c:\Users\RobertoGa

Since the jenkins application is not installed as windows service , it is coupled with the user RobertoGa.

We have created a service user account now - called 'adm_jenkins'. This will be always as a logged in user

Wish to start/stop/restart jenkins using 'adm_jenkins'

- Started Jenkins  using adm_jenkins user

> java -DJENKINS_HOME=c:\Users\RobertoGa -jar <jenkins.war>

 During initialization, the command line execution throws error: 
- <SLAVE_NAME> not recognized
 e.g. WIN_DCA02 not recognized

It seems Slave information is stored somewhere & not loaded when launching the tool using a different user

Could you please help in this regards

Cheers,
LnT

Reply all
Reply to author
Forward
0 new messages