This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
joid:ci_integration [2016/01/14 16:44] David Blaisonneau [Run CI deploy script without jenkins] |
joid:ci_integration [2016/01/26 14:21] (current) David Blaisonneau [Jenkins defaults] |
||
---|---|---|---|
Line 37: | Line 37: | ||
# Git URL to use on this Jenkins Slave | # Git URL to use on this Jenkins Slave | ||
export GIT_BASE=https://gerrit.opnfv.org/gerrit/$PROJECT | export GIT_BASE=https://gerrit.opnfv.org/gerrit/$PROJECT | ||
+ | |||
+ | # Project Name | ||
+ | export PROJECT=joid | ||
+ | |||
+ | # Place of jenkins workspace | ||
+ | export WORKSPACE=$HOME/workspace/joid-deploy-<scenario>/ | ||
+ | # in case of local script testing | ||
+ | export WORKSPACE=$HOME/joid/ | ||
+ | |||
</code> | </code> | ||
+ | |||
+ | |||
====Projects default==== | ====Projects default==== | ||
Line 66: | Line 77: | ||
# External network to create (name;type;first ip;last ip; gateway;network) | # External network to create (name;type;first ip;last ip; gateway;network) | ||
- | export EXTERNAL_NETWORK=ext-net;flat;192.168.0.2;192.168.0.253;192.168.0.1;192.168.0.0/24 | + | export EXTERNAL_NETWORK="ext-net;flat;192.168.0.2;192.168.0.253;192.168.0.1;192.168.0.0/24" |
# Disks to use by ceph by default (space separated list) | # Disks to use by ceph by default (space separated list) | ||
Line 72: | Line 83: | ||
# Disks to use by ceph by controllers (empty if same as CEPH_DISKS) | # Disks to use by ceph by controllers (empty if same as CEPH_DISKS) | ||
- | export CEPH_DISKS_CONTROLLERS= | + | export CEPH_DISKS_CONTROLLERS="" |
# Local lab config and Openstack openrc location | # Local lab config and Openstack openrc location | ||
Line 109: | Line 120: | ||
==== Run CI deploy script without jenkins ==== | ==== Run CI deploy script without jenkins ==== | ||
- | * Copy all jenkins parameters (see list 'Jenkins parameters' section) in a file (~/deploy_params.sh) and set them according to your platform | + | * Copy all jenkins parameters (see list 'Jenkins parameters' section) in a file (~/deploy_params.sh) and set them according to your platform (**don't forget to set DEPLOY_SCENARIO value !**) |
* Load this file | * Load this file | ||
<code>source ~/deploy_params.sh</code> | <code>source ~/deploy_params.sh</code> | ||
* Get the script | * Get the script | ||
- | <code>wget https://git.opnfv.org/cgit/releng/tree/jjb/joid/joid-deploy.sh</code> | + | <code>wget https://git.opnfv.org/cgit/releng/plain/jjb/joid/joid-deploy.sh |
+ | chmod +x joid-deploy.sh</code> | ||
* Run the script | * Run the script | ||
<code>./joid-deploy.sh</code> | <code>./joid-deploy.sh</code> | ||
Line 119: | Line 131: | ||
==== Add my pod deployed by jenkins ==== | ==== Add my pod deployed by jenkins ==== | ||
- | TO BE CORRECTED | + | - Edit Releng **jjb/joid/joid-ci-jobs.yml** |
- | - Edit Releng jjb/joid/joid-ci-jobs.yml | + | |
- to add your node to pod list in the project section | - to add your node to pod list in the project section | ||
- to add your trigger macro at the end of the file | - to add your trigger macro at the end of the file | ||
- | - Add your pod description in jjb/opnfv/slave-params.yml | + | - Add your pod description in **jjb/opnfv/slave-params.yml** |
- | - Setup (or not) your local config file, as described in "Set specific pod parameters". If no. check your NODE_NAME is formated like this: <POD_DATA_CENTER>-<POD_NAME> as set in joid/ci/maas subfolders | + | - Setup (or not) your local config file, as described in "Set specific pod parameters". |
+ | - If your $POD_NAME is not formated like this: <POD_DATA_CENTER>-<POD_ID> as set in joid/ci/maas/<POD_DATA_CENTER>/<POD_ID> subfolders, please modify section "Set Joid pod config name" in **releng/jjb/joid/joid-deploy.sh** | ||
- Ask jenkins to deploy :) | - Ask jenkins to deploy :) | ||