d1bb1b1f0d26637f3266e1c77136df35b7533755
[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.Your slave has been configured in OPNFV Jenkins master
13 4.Create slave's local workspace that has been configured in jenkins master
14 5.Download slave.jar and put it into the folder of /home/jenkins/
15 6.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
25 Finally, run "service jenkins-slave status" command to check the process is running, see the log(/home/jenkins/jenkins-slave/slave.log) to confirm the connection to OPNFV Jenkins.