on Linux : sudo apt-get install default-jre
-
In file "runJenkinsAgent.bat" replace "@rem insert here java -jar agent.jar -jnlpUrl XXX -secret YYY -workDir "c:\JN" to string recived from jenkins on agent page
-
Run file.
- In file install.sh replace values of:
JENKINS_SECRET
JENKINS_SERVER
JENKINS_AGENTNAME
to values recived from jenkins on agent page. JENKINS_AGENTNAME does not contains ' symbol.
for example
echo 'JENKINS_AGENTNAME=LinuxVMTest' >> $JN_RUN_OPTIONS
-
Run install.sh
-
Run runJenkinsAgent.sh