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}'
110 - timed: '0 0,13,15,20 * * *'
113 ###########################
115 ###########################
121 echo "Qtip: Start Docker and prepare environment"
122 envs="INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} -e NODE_NAME=${NODE_NAME}"
123 suite="TEST_CASE=all"
124 docker pull opnfv/qtip:latest
126 cmd=" docker run -id -e $envs -e $suite opnfv/qtip:latest /bin/bash"
127 echo "Qtip: Running docker run command: ${cmd}"
130 container_id=$(docker ps | grep 'opnfv/qtip:latest' | awk '{print $1}' | head -1)
131 if [ $(docker ps | grep 'opnfv/qtip' | wc -l) == 0 ]; then
132 echo "The container opnfv/qtip with ID=${container_id} has not been properly started. Exiting..."
140 QTIP_REPO=/home/opnfv/repos/qtip
141 docker exec -t ${container_id} $QTIP_REPO/docker/run_qtip.sh
150 echo "Cleaning up QTIP docker containers/images..."
151 # Remove previous running containers if exist
152 if [[ ! -z $(docker ps -a | grep opnfv/qtip) ]]; then
153 echo "Removing existing opnfv/qtip containers..."
154 running_containers= $(docker ps | grep opnfv/qtip | awk '{print $1}')
155 docker stop ${running_containers}
156 all_containers= $(docker ps -a | grep opnfv/qtip | awk '{print $1}')
157 docker rm ${all_containers}
160 # Remove existing images if exist
161 if [[ ! -z $(docker images | grep opnfv/qtip) ]]; then
162 echo "Docker images to remove:"
163 docker images | head -1 && docker images | grep opnfv/qtip
164 image_tags=($(docker images | grep opnfv/qtip | awk '{print $2}'))
165 for tag in "${image_tags[@]}"; do
166 echo "Removing docker image opnfv/qtip:$tag..."
167 docker rmi opnfv/qtip:$tag
172 name: qtip-fetch-os-cred
180 git clone https://gerrit.opnfv.org/gerrit/releng
181 cd $WORKSPACE/releng/utils
182 #./fetch_os_creds.sh #To test the problem with creating the file in $HOME
183 ./fetch_os_creds.sh -d $WORKSPACE/opnfv-stack.sh #To test if the file can be created in $WORKSPACE