Revert "Turn debug on in gsutil (Functest jjbs)"
[releng.git] / jjb / functest / xtesting-project-jobs.yaml
1 ---
2 ###################################################
3 # All the jobs except verify have been removed!
4 # They will only be enabled on request by projects!
5 ###################################################
6 - project:
7     name: xtesting-project-jobs
8
9     project: 'functest-xtesting'
10
11     jobs:
12       - 'xtesting-verify-{stream}'
13       - 'xtesting-verify-{phase}-{stream}'
14
15     stream:
16       - master:
17           branch: '{stream}'
18           gs-pathname: ''
19           disabled: false
20       - iruya: &iruya
21           branch: 'stable/{stream}'
22           gs-pathname: '/{stream}'
23           disabled: false
24       - hunter: &hunter
25           branch: 'stable/{stream}'
26           gs-pathname: '/{stream}'
27           disabled: false
28       - gambia: &gambia
29           branch: 'stable/{stream}'
30           gs-pathname: '/{stream}'
31           disabled: false
32
33     phase:
34       - 'unit-tests-and-docs':
35           slave-label: 'opnfv-build-ubuntu'
36
37 - job-template:
38     name: 'xtesting-verify-{stream}'
39
40     disabled: '{obj:disabled}'
41
42     project-type: 'multijob'
43
44     parameters:
45       - project-parameter:
46           project: '{project}'
47           branch: '{branch}'
48       - 'opnfv-build-ubuntu-defaults'
49
50     scm:
51       - git-scm-gerrit
52
53     triggers:
54       - 'xtesting-verify-triggers-macro':
55           project: '{project}'
56           branch: '{branch}'
57
58     builders:
59       - shell: |
60           #!/bin/bash
61           # we do nothing here as the main stuff will be done
62           # in phase jobs
63           echo "Triggering phase jobs!"
64       - multijob:
65           name: 'xtesting-build-and-unittest'
66           execution-type: PARALLEL
67           projects:
68             - name: 'xtesting-verify-unit-tests-and-docs-{stream}'
69               current-parameters: false
70               predefined-parameters: |
71                 GERRIT_BRANCH=$GERRIT_BRANCH
72                 GERRIT_REFSPEC=$GERRIT_REFSPEC
73                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
74                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
75               git-revision: true
76               node-parameters: false
77               kill-phase-on: FAILURE
78               abort-all-job: false
79
80 - job-template:
81     name: 'xtesting-verify-{phase}-{stream}'
82
83     disabled: '{obj:disabled}'
84
85     wrappers:
86       - ssh-agent-wrapper
87       - build-timeout:
88           timeout: 30
89
90     parameters:
91       - project-parameter:
92           project: '{project}'
93           branch: '{branch}'
94       - '{slave-label}-defaults'
95
96     scm:
97       - git-scm-gerrit
98
99     builders:
100       - 'xtesting-verify-{phase}-builders-macro'
101
102     publishers:
103       - 'xtesting-verify-{phase}-publishers-macro'
104
105 ################################
106 # job triggers
107 ################################
108 - trigger:
109     name: 'xtesting-verify-triggers-macro'
110     triggers:
111       - gerrit:
112           server-name: 'gerrit.opnfv.org'
113           trigger-on:
114             - patchset-created-event:
115                 exclude-drafts: 'false'
116                 exclude-trivial-rebase: 'false'
117                 exclude-no-code-change: 'false'
118             - draft-published-event
119             - comment-added-contains-event:
120                 comment-contains-value: 'recheck'
121             - comment-added-contains-event:
122                 comment-contains-value: 'reverify'
123           projects:
124             - project-compare-type: 'ANT'
125               project-pattern: '{project}'
126               branches:
127                 - branch-compare-type: 'ANT'
128                   branch-pattern: '**/{branch}'
129               disable-strict-forbidden-file-verification: 'true'
130               forbidden-file-paths:
131                 - compare-type: ANT
132                   pattern: 'docs/**|.gitignore'
133
134 ################################
135 # job builders
136 ################################
137
138 - builder:
139     name: 'xtesting-verify-unit-tests-and-docs-builders-macro'
140     builders:
141       - shell: |
142           cd $WORKSPACE && tox
143
144 ################################
145 # job publishers
146 ################################
147 - publisher:
148     name: 'xtesting-verify-unit-tests-and-docs-publishers-macro'
149     publishers:
150       - junit:
151           results: nosetests.xml
152       - cobertura:
153           report-file: "coverage.xml"
154           only-stable: "true"
155           health-auto-update: "true"
156           stability-auto-update: "true"
157           zoom-coverage-chart: "true"
158           targets:
159             - files:
160                 healthy: 10
161                 unhealthy: 20
162                 failing: 30
163             - method:
164                 healthy: 50
165                 unhealthy: 40
166                 failing: 30
167       - email-jenkins-admins-on-failure