2 ###################################
3 # job configuration for cperf
4 ###################################
9 # -------------------------------
11 # -------------------------------
24 - 'cperf-{installer}-{testsuite}-{stream}'
25 - 'cperf-upload-logs-csit'
27 ################################
29 ################################
31 name: 'cperf-{installer}-{testsuite}-{stream}'
43 name: '$BUILD_NUMBER Suite: $CPERF_SUITE_NAME ODL BRANCH: $ODL_BRANCH'
50 testsuite: '{testsuite}'
51 gs-pathname: '{gs-pathname}'
52 docker-tag: '{docker-tag}'
56 - 'cperf-{testsuite}-builder'
59 name: 'cperf-upload-logs-csit'
68 gs-pathname: '{gs-pathname}'
69 docker-tag: '{docker-tag}'
72 # yamllint enable rule:line-length
81 - 'cperf-upload-logs-csit'
83 ########################
85 ########################
90 name: CPERF_SUITE_NAME
91 default: '{testsuite}'
92 description: "Suite name to run"
96 description: "Branch that OpenDaylight is running"
100 description: "OpenStack version (short name, no stable/ prefix)"
103 default: '{gs-pathname}'
104 description: "Version directory where the opnfv documents will be stored in gs repository"
108 description: "Show debug output information"
111 default: '{docker-tag}'
112 description: 'Tag to pull docker image'
116 description: "Path to the OS credentials file if given"
120 description: "Path to the private SSH key to access OPNFV nodes"
124 description: "Path to the yaml file describing overcloud nodes"
126 name: ODL_CONTAINERIZED
128 description: "boolean set true if ODL on overcloud is a container"
130 ########################
132 ########################
134 ########################
136 ########################
138 name: cperf-csit-builder
141 - 'cperf-prepare-robot'
142 - 'cperf-robot-netvirt-csit'
145 name: cperf-cbench-builder
148 - 'cperf-prepare-robot'
149 - 'cperf-robot-cbench'
152 name: cperf-prepare-robot
155 !include-raw: ./cperf-prepare-robot.sh
158 name: cperf-robot-cbench
166 # cbench requires the openflow drop test feature to be installed.
167 sshpass -p karaf ssh -o StrictHostKeyChecking=no \
168 -o UserKnownHostsFile=/dev/null \
170 -p 8101 karaf@$SDN_CONTROLLER_IP \
171 feature:install odl-openflowplugin-flow-services-ui odl-openflowplugin-drop-test
173 robot_cmd="pybot -e exclude -L TRACE -d /tmp \
174 -v ODL_SYSTEM_1_IP:${SDN_CONTROLLER_IP} \
175 -v ODL_SYSTEM_IP:${SDN_CONTROLLER_IP} \
176 -v BUNDLEFOLDER:/opt/opendaylight \
177 -v RESTCONFPORT:8081 \
180 -v ODL_SYSTEM_USER:heat-admin \
181 -v TOOLS_SYSTEM_IP:localhost \
183 robot_suite="/home/opnfv/repos/odl_test/csit/suites/openflowplugin/Performance/010_Cbench.robot"
185 docker run -i -v /tmp:/tmp opnfv/cperf:$DOCKER_TAG ${robot_cmd} ${robot_suite}
188 name: cperf-robot-netvirt-csit
191 !include-raw: ./cperf-robot-netvirt-csit.sh
198 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
200 echo "Cleaning up docker containers/images..."
201 # Remove previous running containers if exist
202 if [[ ! -z $(docker ps -a | grep opnfv/cperf) ]]; then
203 echo "Removing existing opnfv/cperf containers..."
204 docker ps -a | grep opnfv/cperf | awk '{print $1}' | xargs docker rm -f >${redirect}
208 name: cperf-upload-logs-csit
210 - shell: !include-raw: ./cperf-upload-logs-csit.sh