Launch slave of OPNFV Jenkins using JNLP
[octopus.git] / ci / README
1 ##############################################################################
2 # Copyright (c) 2015 Huawei Technologies Co.,Ltd.
3 # meimei@huawei.com
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0#
8 ##############################################################################
9 Before use this script please make sure things below you have done:
10 1.Install JDK on server
11 2.Create local user on server: jenkins
12 3.Create the local workspace configured in jenkins
13 3.Download slave.jar and put it into $HOME directory of jenkins user
14 4.Your slave has been configured in OPNFV Jenkins
15 5.Obtain slave's token from Linux Foundation Helpdesk
16 Consult wiki : https://wiki.opnfv.org/wiki/jenkins#how_to_connect_servers_from_labs_to_opnfv_jenkins
17
18 Follow steps below to launch your slave to OPNFV Jenkins:
19 1. cp jenkins-slave.init /etc/init.d/jenkins-slave
20 2. chmod +x /etc/init.d/jenkins-slave
21 3. define $SLAVENAME&$TOKEN in config file(jenkins-slave)
22 4. cp jenkins-slave /etc/default/jenkins-slave
23 5. service jenkins-slave start
24 Finally, run "service jenkins-slave status" command to check the process is running, see the log(/home/jenkins/slave.log) to confirm the connect to  OPNFV Jenkins.