2 ###################################
3 # job configuration for cperf
4 ###################################
9 # -------------------------------
11 # -------------------------------
24 - 'cperf-{installer}-{testsuite}-{stream}'
26 ################################
28 ################################
30 name: 'cperf-{installer}-{testsuite}-{stream}'
42 name: '$BUILD_NUMBER Suite: $CPERF_SUITE_NAME ODL BRANCH: $ODL_BRANCH'
49 testsuite: '{testsuite}'
50 gs-pathname: '{gs-pathname}'
51 docker-tag: '{docker-tag}'
55 - 'cperf-{testsuite}-builder'
57 ########################
59 ########################
64 name: CPERF_SUITE_NAME
65 default: '{testsuite}'
66 description: "Suite name to run"
70 description: "Branch that OpenDaylight is running"
74 description: "OpenStack version (short name, no stable/ prefix)"
77 default: '{gs-pathname}'
78 description: "Version directory where the opnfv documents will be stored in gs repository"
82 description: "Show debug output information"
85 default: '{docker-tag}'
86 description: 'Tag to pull docker image'
90 description: "Path to the OS credentials file if given"
94 description: "Path to the private SSH key to access OPNFV nodes"
98 description: "Path to the yaml file describing overcloud nodes"
100 name: ODL_CONTAINERIZED
102 description: "boolean set true if ODL on overcloud is a container"
104 ########################
106 ########################
108 ########################
110 ########################
112 name: cperf-csit-builder
115 - 'cperf-prepare-robot'
116 - 'cperf-robot-netvirt-csit'
119 name: cperf-cbench-builder
122 - 'cperf-prepare-robot'
123 - 'cperf-robot-cbench'
126 name: cperf-prepare-robot
129 !include-raw: ./cperf-prepare-robot.sh
132 name: cperf-robot-cbench
140 # cbench requires the openflow drop test feature to be installed.
141 sshpass -p karaf ssh -o StrictHostKeyChecking=no \
142 -o UserKnownHostsFile=/dev/null \
144 -p 8101 karaf@$SDN_CONTROLLER_IP \
145 feature:install odl-openflowplugin-flow-services-ui odl-openflowplugin-drop-test
147 robot_cmd="pybot -e exclude -L TRACE -d /tmp \
148 -v ODL_SYSTEM_1_IP:${SDN_CONTROLLER_IP} \
149 -v ODL_SYSTEM_IP:${SDN_CONTROLLER_IP} \
150 -v BUNDLEFOLDER:/opt/opendaylight \
151 -v RESTCONFPORT:8081 \
154 -v ODL_SYSTEM_USER:heat-admin \
155 -v TOOLS_SYSTEM_IP:localhost \
157 robot_suite="/home/opnfv/repos/odl_test/csit/suites/openflowplugin/Performance/010_Cbench.robot"
159 docker run -i -v /tmp:/tmp opnfv/cperf:$DOCKER_TAG ${robot_cmd} ${robot_suite}
162 name: cperf-robot-netvirt-csit
165 !include-raw: ./cperf-robot-netvirt-csit.sh
172 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
174 echo "Cleaning up docker containers/images..."
175 # Remove previous running containers if exist
176 if [[ ! -z $(docker ps -a | grep opnfv/cperf) ]]; then
177 echo "Removing existing opnfv/cperf containers..."
178 docker ps -a | grep opnfv/cperf | awk '{print $1}' | xargs docker rm -f >${redirect}
181 # Remove existing images if exist
182 if [[ ! -z $(docker images | grep opnfv/cperf) ]]; then
183 echo "Docker images to remove:"
184 docker images | head -1 && docker images | grep opnfv/cperf >${redirect}
185 image_tags=($(docker images | grep opnfv/cperf | awk '{print $2}'))
186 for tag in "${image_tags[@]}"; do
187 echo "Removing docker image opnfv/cperf:$tag..."
188 docker rmi opnfv/cperf:$tag >/dev/null