1
votes

I created a slave for jenkins. when I access the node from slave machine it shows Run from slave command line:

javaws http://localhost:8080/computer/Dimantha/slave-agent.jnlp

how to display IP address of master server instead of 'localhost'? enter image description here

3

3 Answers

2
votes

I have encountered this issue before and here is the solution:

Manage Jenkins-->Configure System-->Jenkins Location

Then change the Jenkins URL to actual IP or hostname.

enter image description here

1
votes

Your master's configuration is probably set wrong.
In the Jenkins master configuration, you should edit Jenkins URL to the actual IP or hostname so it will be resolved correctly when accessing from a browser like in your example.

I hope this helps.

0
votes

Not sure what you're asking - since this is a command line, you just edit the command and replace localhost with your master server name.