jenkins master ip address changed and slaves node disconnected

Please refer to the below:

In your jenkins Dashboard go to Manage Jenkins > Configure System

Under Jenkins Location set the Jenkins URL to the new IP address of your server computer

Save changes

On jenkins dashboard under Build Executor Status click on your slave node

Click launch button to download new slave agent with updated IP and save it in desired location. web start slave launch. On the picture, below the sentence "Run from slave command line" you should see a command that includes the new IP address

Launch the slave agent and it should now connect to the new IP address successfully!

Hope this helps anyone else! 

use the below command to connect to master and run it on agent:

java -jar agent.jar -jnlpUrl http://65.0.89.147:8080/computer/new%20node/jenkins-agent.jnlp -secret ec3d573f1cc65cc77c00474aedb3891a5ba8b9d3e235c32acdfaf4cb6a518a84 -workDir ""

the above command runs in the foreground and when ctrl+c, connection will be lost between slave and master. To run it in the backgroup, use & at the end of the url.

java -jar agent.jar -jnlpUrl http://65.0.89.147:8080/computer/new%20node/jenkins-agent.jnlp -secret ec3d573f1cc65cc77c00474aedb3891a5ba8b9d3e235c32acdfaf4cb6a518a84 -workDir "" & 

Install required software of slave node as well under same location as root

/opt/


Comments

Popular posts from this blog

Jenkins for salesforce on RHEL OS or CentOS and configuring jenkins slave

Jenkins install for salesforce