From a80ff748730bd3ee8c42b8f00f5c01ba8e41dd92 Mon Sep 17 00:00:00 2001 From: Aric Gardner Date: Mon, 28 Nov 2016 11:25:26 -0500 Subject: jenkins-jnlp-connect.sh must be copied to /home/jenkins jenkins-jnlp-connect.sh expects the slave.jar to be in its directory Change-Id: I05ac744b6f29efca59a1610594341ca8d2b9f4ec Signed-off-by: Aric Gardner --- docs/octopus_docs/opnfv-jenkins-slave-connection.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/octopus_docs/opnfv-jenkins-slave-connection.rst b/docs/octopus_docs/opnfv-jenkins-slave-connection.rst index 7ff1188..1c6eb82 100644 --- a/docs/octopus_docs/opnfv-jenkins-slave-connection.rst +++ b/docs/octopus_docs/opnfv-jenkins-slave-connection.rst @@ -125,16 +125,18 @@ Please follow below steps to connect a slave to OPNFV Jenkins. - Public IP of the slave (You can get the IP by executing ``curl http://icanhazip.com/``) - PGP Key (attached to the mail or exported to a key server) 7. Once you get confirmation from LF stating that your slave is created on OPNFV Jenkins, check if the firewall on LF is open for the server you are trying to connect to Jenkins. - ``sudo /home/jenkins/opnfv/repos/releng/utils/jenkins-jnlp-connect.sh -j /home/jenkins -u jenkins -n -s -f`` + ``cp /home/jenkins/opnfv/repos/releng/utils/jenkins-jnlp-connect.sh /home/jenkins/`` + ``cd /home/jenkins/`` + ``sudo ./jenkins-jnlp-connect.sh -j /home/jenkins -u jenkins -n -s -f`` - If you receive an error, follow the steps listed on the command output. 8. Run the same script with test(-t) on foreground in order to make sure no problem on connection. You should see **INFO: Connected** in the console log. - ``sudo /home/jenkins/opnfv/repos/releng/utils/jenkins-jnlp-connect.sh -j /home/jenkins -u jenkins -n -s -t`` + ``sudo ./jenkins-jnlp-connect.sh -j /home/jenkins -u jenkins -n -s -t`` - If you receive an error similar to the one shown `on this link `_, you need to check your firewall and allow outgoing connections for the port. 9. Kill the Java slave.jar process. 10. Run the same script normally without test(-t) in order to get monit script created. - ``sudo /home/jenkins/opnfv/repos/releng/utils/jenkins-jnlp-connect.sh -j /home/jenkins -u jenkins -n -s `` + ``sudo ./jenkins-jnlp-connect.sh -j /home/jenkins -u jenkins -n -s `` 11. Edit monit configuration and enable http interface. The file to edit is /etc/monit/monitrc on Ubuntu systems. Uncomment below lines. set httpd port 2812 and use address localhost # only accept connection from localhost -- cgit 1.2.3-korg