Cleanup jjb files
[releng.git] / jjb / qtip / qtip.yml
1 - project:
2     name: qtip
3
4     project: '{name}'
5
6     jobs:
7         - 'qtip-verify-{stream}'
8         - 'qtip-dhrystone-serial-{pod}'
9         - 'qtip-ssl-parallel-{pod}'
10
11     pod:
12         - dell-build:
13            node: 'dell-us-testing-bm-1'
14            installer_type: 'fuel'
15            installer_ip: '10.20.0.2'
16
17 # only master branch is enabled at the moment to keep no of jobs sane
18     stream:
19         - master:
20             branch: 'master'
21             gs-pathname: ''
22 #        - stable-brahmaputra:
23 #            branch: 'stable/brahmaputra'
24 #            gs-pathname: '/brahmaputra'
25
26 - job-template:
27     name: 'qtip-verify-{stream}'
28
29     parameters:
30         - project-parameter:
31             project: '{project}'
32         - gerrit-parameter:
33             branch: '{stream}'
34         - 'opnfv-build-defaults'
35
36     scm:
37         - gerrit-trigger-scm:
38             credentials-id: '{ssh-credentials}'
39             refspec: '$GERRIT_REFSPEC'
40             choosing-strategy: 'gerrit'
41
42     triggers:
43         - gerrit:
44             trigger-on:
45                 - patchset-created-event:
46                     exclude-drafts: 'false'
47                     exclude-trivial-rebase: 'false'
48                     exclude-no-code-change: 'false'
49                 - draft-published-event
50                 - comment-added-contains-event:
51                     comment-contains-value: 'recheck'
52                 - comment-added-contains-event:
53                     comment-contains-value: 'reverify'
54             projects:
55               - project-compare-type: 'ANT'
56                 project-pattern: '{project}'
57                 branches:
58                   - branch-compare-type: 'ANT'
59                     branch-pattern: '**/{stream}'
60                 forbidden-file-paths:
61                   - compare-type: ANT
62                     pattern: 'docs/**|.gitignore'
63
64     builders:
65         - shell: |
66             echo "Nothing to verify!"
67
68 - job-template:
69     name: 'qtip-dhrystone-serial-{pod}'
70
71     disabled: false
72
73     node: '{node}'
74
75     parameters:
76       - project-parameter:
77           project: '{project}'
78       - string:
79           name: INSTALLER_TYPE
80           default: '{installer_type}'
81           description: "Installer name that is used for deployment."
82       - string:
83           name: INSTALLER_IP
84           default: '{installer_ip}'
85           description: "Installer IP"
86       - string:
87           name: GIT_BASE
88           default: https://gerrit.opnfv.org/gerrit/$PROJECT
89           description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
90
91     scm:
92        - git-scm:
93            credentials-id: '{ssh-credentials}'
94            refspec: ''
95            branch: master
96
97     builders:
98         - 'qtip-fetch-os-cred'
99         - 'qtip-dhrystone-serial'
100
101     triggers:
102       - timed: '0 20 * * *'
103
104 - job-template:
105     name: 'qtip-ssl-parallel-{pod}'
106
107     disabled: false
108
109     node: '{node}'
110
111     parameters:
112       - project-parameter:
113           project: '{project}'
114       - string:
115           name: INSTALLER_TYPE
116           default: '{installer_type}'
117           description: "Installer name that is used for deployment."
118       - string:
119           name: INSTALLER_IP
120           default: '{installer_ip}'
121           description: "IP address of the installer"
122       - string:
123           name: GIT_BASE
124           default: https://gerrit.opnfv.org/gerrit/$PROJECT
125           description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
126
127     scm:
128        - git-scm:
129            credentials-id: '{ssh-credentials}'
130            refspec: ''
131            branch: master
132
133     builders:
134       - 'qtip-fetch-os-cred'
135       - 'qtip-ssl-parallel'
136
137     triggers:
138       - timed: '0 0,11,18 * * *'
139
140 ###########################
141 #biuilder macros
142 ###########################
143 - builder:
144     name: qtip-dhrystone-serial
145
146     builders:
147         - shell: |
148             #! /bin/bash
149             if [[ ! -f $WORKSPACE/opnfv-stack.sh ]]; then
150                echo "Unable to access file $WO:qRKSPACE/opnfv-openrc.sh"
151                exit 1
152             fi
153             source $WORKSPACE/opnfv-stack.sh
154             cd $WORKSPACE
155             echo "Running QTIP dhrystone with First Test case"
156             python qtip.py -s compute -b dhrystone_serial.yaml
157
158 - builder:
159     name: qtip-ssl-parallel
160
161     builders:
162         - shell: |
163             #!/bin/bash
164             if [[ ! -f $WORKSPACE/opnfv-stack.sh ]]; then
165                echo "Unable to access file $WORKSPACE/opnfv-openrc.sh"
166                exit 1
167             fi
168             source $WORKSPACE/opnfv-stack.sh
169             cd $WORKSPACE
170             echo "Running QTIP dhrystone with Second Test case"
171             python qtip.py -s compute -b ssl_parallel.yaml
172
173 - builder:
174     name: qtip-fetch-os-cred
175     builders:
176         - shell: |
177             echo $HOME
178             echo $WORKSPACE
179             cd $WORKSPACE
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