Forum Discussion
baxatob
Community Hero
On the slave node try to open command line, go to the Jenkins work directory and run:
java -jar slave.jar -jnlpUrl http://<SLAVE_NODE_URL>/slave-agent.jnlp -secret <SECRET_KEY> -workDir "<JENKINS_WORK_DIRECTORY_PATH>"
You can find above arguments in the jenkins-slave.xml file, which should be in your Jenkins work directory on the slave node.
endorium
7 years agoFrequent Contributor
I run this and get a message saying "-workdir" is not a valid option
- endorium7 years agoFrequent Contributor
If I take the section about working directory out and run it I get the attached errors.
- baxatob7 years agoCommunity Hero
Ups, sorry.
-jnlpUrl argument should be:
http://<JENKINS_SERVER>:< PORT>/computer/<SLAVE_NODE_NAME>/slave-agent.jnlp
- endorium7 years agoFrequent Contributor
I have tried this (Without the working dir part as it does not like it). I get the same errors as in the screenshot above in the command prompt
Related Content
Recent Discussions
- 7 hours agoSvetaG