Add the script for Jenkins setup
[icn.git] / ci / README.md
1 # Setup a private Jenkins server from a refresh ubuntu
2
3
4 **Note:** As we don't support that downloading packages in sandbox for now,
5 it means that the packages are all downloaded directely from the jenkins
6 server. So that the jenkins server must have the same OS version with ICN
7 nodes. Currently, it's ubuntu 18.04 with kernel version 4.15.0-45-generic.
8
9 ## How to setup jenkins server
10
11 Put the gerrit ssh key under `icn/ci/gerrit.key`
12 The default listening address is the default ip address of the Jenkins server.
13 To override the listening address/domain name, use variable `jenkins_hostname`.
14 The default Jenkins username/password is `admin/admin`. To overrides it, use variables
15 `jenkins_admin_username` and `jenkins_admin_password`.
16
17 ```bash
18 git clone "https://gerrit.akraino.org/r/icn" # may need to switch the branch based on your case
19 cd icn/ci
20 sudo ./setup_jenkins.sh
21 sudo ansible-playbook site_jenkins.yaml -v
22 ```
23
24 Once the playbook is successful, we can visite the jenkins server at http://<listen_address>:8080.