summaryrefslogtreecommitdiffstats
path: root/docs/octopus_docs/opnfv-jenkins-slave-connection.rst
diff options
context:
space:
mode:
authorAric Gardner <agardner@linuxfoundation.org>2016-11-28 11:25:26 -0500
committerAric Gardner <agardner@linuxfoundation.org>2016-11-28 11:25:26 -0500
commita80ff748730bd3ee8c42b8f00f5c01ba8e41dd92 (patch)
treebbbe558390d4efe5c724b2986d82c5f49bfdc22f /docs/octopus_docs/opnfv-jenkins-slave-connection.rst
parent182818d00385f28aca0a57541987ac5985ef426a (diff)
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 <agardner@linuxfoundation.org>
Diffstat (limited to 'docs/octopus_docs/opnfv-jenkins-slave-connection.rst')
-rw-r--r--docs/octopus_docs/opnfv-jenkins-slave-connection.rst8
1 files 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 <slave name on OPNFV Jenkins> -s <the token you received from LF> -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 <slave name on OPNFV Jenkins> -s <the token you received from LF> -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 <slave name on OPNFV Jenkins> -s <the token you received from LF> -t``
+ ``sudo ./jenkins-jnlp-connect.sh -j /home/jenkins -u jenkins -n <slave name on OPNFV Jenkins> -s <the token you received from LF> -t``
- If you receive an error similar to the one shown `on this link <http://hastebin.com/ozadagirax.avrasm>`_, 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 <slave name on OPNFV Jenkins> -s <the token you received from LF>``
+ ``sudo ./jenkins-jnlp-connect.sh -j /home/jenkins -u jenkins -n <slave name on OPNFV Jenkins> -s <the token you received from LF>``
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