Update the fuel ci job on zte pods
[releng.git] / jjb / yardstick / yardstick-project-jobs.yml
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: yardstick-project-jobs
8
9     project: 'yardstick'
10
11     jobs:
12       - 'yardstick-verify-{stream}'
13       - 'yardstick-merge-{stream}'
14
15     stream:
16       - master:
17           branch: '{stream}'
18           gs-pathname: ''
19           disabled: false
20       - euphrates:
21           branch: 'stable/{stream}'
22           gs-pathname: '/{stream}'
23           disabled: false
24
25 ################################
26 # job templates
27 ################################
28
29 - job-template:
30     name: 'yardstick-verify-{stream}'
31
32     disabled: '{obj:disabled}'
33
34     parameters:
35       - project-parameter:
36           project: '{project}'
37           branch: '{branch}'
38       - 'opnfv-build-ubuntu-defaults'
39
40     scm:
41       - git-scm-gerrit
42
43     triggers:
44       - gerrit:
45           server-name: 'gerrit.opnfv.org'
46           trigger-on:
47             - patchset-created-event:
48                 exclude-drafts: 'false'
49                 exclude-trivial-rebase: 'false'
50                 exclude-no-code-change: 'false'
51             - draft-published-event
52             - comment-added-contains-event:
53                 comment-contains-value: 'recheck'
54             - comment-added-contains-event:
55                 comment-contains-value: 'reverify'
56           projects:
57             - project-compare-type: 'ANT'
58               project-pattern: '{project}'
59               branches:
60                 - branch-compare-type: 'ANT'
61                   branch-pattern: '**/{branch}'
62
63     wrappers:
64       - ssh-agent-wrapper
65       - timeout:
66           timeout: 30
67           fail: true
68
69     builders:
70       - yardstick-unit-tests-and-docs-build
71
72 - job-template:
73     name: 'yardstick-merge-{stream}'
74
75     disabled: '{obj:disabled}'
76
77     parameters:
78       - project-parameter:
79           project: '{project}'
80           branch: '{branch}'
81       - 'opnfv-build-ubuntu-defaults'
82       - string:
83           name: GS_URL
84           default: '$GS_BASE{gs-pathname}'
85           description: "Directory where the build artifact will be located upon the completion     of the build."
86
87     scm:
88       - git-scm
89
90     triggers:
91       - gerrit:
92           server-name: 'gerrit.opnfv.org'
93           trigger-on:
94             - change-merged-event
95             - comment-added-contains-event:
96                 comment-contains-value: 'remerge'
97           projects:
98             - project-compare-type: 'ANT'
99               project-pattern: '{project}'
100               branches:
101                 - branch-compare-type: 'ANT'
102                   branch-pattern: '**/{branch}'
103
104     wrappers:
105       - ssh-agent-wrapper
106       - timeout:
107           timeout: 30
108           fail: true
109
110     builders:
111       - yardstick-unit-tests-and-docs-build
112
113 ################################
114 # job builders
115 ################################
116
117 - builder:
118     name: yardstick-unit-tests-and-docs-build
119     builders:
120       - shell: |
121           #!/bin/bash
122           set -o errexit
123           set -o pipefail
124
125           sudo apt-get install -y build-essential python-dev python3-dev
126
127           echo "Running unit tests..."
128           cd $WORKSPACE
129           tox