7 - 'qtip-verify-{stream}'
8 - 'qtip-{installer_type}-{pod}-daily-{stream}'
11 - dell-us-testing-bm-1:
12 node: 'dell-us-testing-bm-1'
13 installer_type: 'fuel'
14 installer_ip: '10.20.0.2'
15 - dell-us-deploying-bm3:
16 node: 'dell-us-deploying-bm3'
17 installer_type: 'fuel'
18 installer_ip: '10.20.0.2'
20 # only master branch is enabled at the moment to keep no of jobs sane
26 # branch: 'stable/brahmaputra'
27 # gs-pathname: '/brahmaputra'
30 name: 'qtip-verify-{stream}'
37 - 'opnfv-build-defaults'
41 credentials-id: '{ssh-credentials}'
42 refspec: '$GERRIT_REFSPEC'
43 choosing-strategy: 'gerrit'
48 - patchset-created-event:
49 exclude-drafts: 'false'
50 exclude-trivial-rebase: 'false'
51 exclude-no-code-change: 'false'
52 - draft-published-event
53 - comment-added-contains-event:
54 comment-contains-value: 'recheck'
55 - comment-added-contains-event:
56 comment-contains-value: 'reverify'
58 - project-compare-type: 'ANT'
59 project-pattern: '{project}'
61 - branch-compare-type: 'ANT'
62 branch-pattern: '**/{branch}'
65 pattern: 'docs/**|.gitignore'
69 echo "Nothing to verify!"
72 name: 'qtip-{installer_type}-{pod}-daily-{stream}'
83 default: '{installer_type}'
84 description: "Installer name that is used for deployment."
87 default: '{installer_ip}'
88 description: "Installer IP"
92 description: "Name of the POD"
95 default: https://gerrit.opnfv.org/gerrit/$PROJECT
96 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
100 credentials-id: '{ssh-credentials}'
111 - timed: '0 0,13,15,20 * * *'
114 ###########################
116 ###########################
122 echo "Qtip: Start Docker and prepare environment"
123 envs="INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} -e NODE_NAME=${NODE_NAME}"
124 suite="TEST_CASE=all"
125 docker pull opnfv/qtip:latest
127 cmd=" docker run -id -e $envs -e $suite opnfv/qtip:latest /bin/bash"
128 echo "Qtip: Running docker run command: ${cmd}"
131 container_id=$(docker ps | grep 'opnfv/qtip:latest' | awk '{print $1}' | head -1)
132 if [ $(docker ps | grep 'opnfv/qtip' | wc -l) == 0 ]; then
133 echo "The container opnfv/qtip with ID=${container_id} has not been properly started. Exiting..."
141 container_id=$(docker ps | grep 'opnfv/qtip:latest' | awk '{print $1}' | head -1)
142 if [[ ! -z ${container_id} ]]; then
143 echo "The container ID is: ${container_id}"
144 QTIP_REPO=/home/opnfv/repos/qtip
145 docker exec -t ${container_id} $QTIP_REPO/docker/run_qtip.sh
147 echo "Container ID not available"
156 echo "Pushing available results to DB"
157 echo "The container id is:"
158 container_id=$(docker ps | grep 'opnfv/qtip:latest' | awk '{print $1}' | head -1)
159 if [[ ! -z ${container_id} ]]; then
160 echo "The condiner ID is: ${container_id}"
161 QTIP_REPO=/home/opnfv/repos/qtip
162 docker exec -t ${container_id} $QTIP_REPO/docker/push_db.sh
164 echo "Container ID not available"
173 echo "Cleaning up QTIP docker containers/images..."
174 # Remove previous running containers if exist
175 if [[ ! -z $(docker ps -a | grep opnfv/qtip) ]]; then
176 echo "Removing existing opnfv/qtip containers..."
177 running_containers=$(docker ps | grep opnfv/qtip | awk '{print $1}')
178 docker stop ${running_containers}
179 all_containers=$(docker ps -a | grep opnfv/qtip | awk '{print $1}')
180 docker rm ${all_containers}
183 # Remove existing images if exist
184 if [[ ! -z $(docker images | grep opnfv/qtip) ]]; then
185 echo "Docker images to remove:"
186 docker images | head -1 && docker images | grep opnfv/qtip
187 image_tags=($(docker images | grep opnfv/qtip | awk '{print $2}'))
188 for tag in "${image_tags[@]}"; do
189 echo "Removing docker image opnfv/qtip:$tag..."
190 docker rmi opnfv/qtip:$tag
195 name: qtip-fetch-os-cred
203 git clone https://gerrit.opnfv.org/gerrit/releng
204 cd $WORKSPACE/releng/utils
205 #./fetch_os_creds.sh #To test the problem with creating the file in $HOME
206 ./fetch_os_creds.sh -d $WORKSPACE/opnfv-stack.sh #To test if the file can be created in $WORKSPACE