Merge "jjb: infra: bifrost-cleanup-job.yml: Add new bifrost cleanup job"
[releng.git] / jjb / barometer / barometer.yml
1 ###################################################
2 # All the jobs except verify have been removed!
3 # They will only be enabled on request by projects!
4 ###################################################
5 - project:
6     name: barometer
7
8     project: '{name}'
9
10     jobs:
11         - 'barometer-verify-{stream}'
12         - 'barometer-merge-{stream}'
13         - 'barometer-daily-{stream}'
14
15     stream:
16         - master:
17             branch: '{stream}'
18             gs-pathname: ''
19             disabled: false
20         - danube:
21             branch: 'stable/{stream}'
22             gs-pathname: '/{stream}'
23             disabled: true
24
25 - job-template:
26     name: 'barometer-verify-{stream}'
27
28     disabled: '{obj:disabled}'
29
30     parameters:
31         - project-parameter:
32             project: '{project}'
33             branch: '{branch}'
34         - 'opnfv-build-ubuntu-defaults'
35
36     scm:
37         - git-scm-gerrit
38
39     triggers:
40         - gerrit:
41             server-name: 'gerrit.opnfv.org'
42             trigger-on:
43                 - patchset-created-event:
44                     exclude-drafts: 'false'
45                     exclude-trivial-rebase: 'false'
46                     exclude-no-code-change: 'false'
47                 - draft-published-event
48                 - comment-added-contains-event:
49                     comment-contains-value: 'recheck'
50                 - comment-added-contains-event:
51                     comment-contains-value: 'reverify'
52             projects:
53               - project-compare-type: 'ANT'
54                 project-pattern: '{project}'
55                 branches:
56                   - branch-compare-type: 'ANT'
57                     branch-pattern: '**/{branch}'
58                 forbidden-file-paths:
59                   - compare-type: ANT
60                     pattern: 'docs/**|.gitignore'
61
62     builders:
63         - shell: |
64             pwd
65             cd src
66             make clobber
67             make
68
69 - job-template:
70     name: 'barometer-merge-{stream}'
71
72     project-type: freestyle
73
74     disabled: '{obj:disabled}'
75
76     concurrent: true
77
78     properties:
79         - logrotate-default
80         - throttle:
81             enabled: true
82             max-total: 3
83             max-per-node: 2
84             option: 'project'
85
86     parameters:
87         - project-parameter:
88             project: '{project}'
89             branch: '{branch}'
90         - 'opnfv-build-ubuntu-defaults'
91
92     scm:
93         - git-scm
94
95     triggers:
96         - gerrit:
97             server-name: 'gerrit.opnfv.org'
98             trigger-on:
99                 - change-merged-event
100                 - comment-added-contains-event:
101                     comment-contains-value: 'remerge'
102             projects:
103               - project-compare-type: 'ANT'
104                 project-pattern: '{project}'
105                 branches:
106                     - branch-compare-type: 'ANT'
107                       branch-pattern: '**/{branch}'
108                 forbidden-file-paths:
109                   - compare-type: ANT
110                     pattern: 'docs/**'
111
112     builders:
113         - shell: |
114             pwd
115             cd src
116             ./install_build_deps.sh
117             make clobber
118             make
119
120 - job-template:
121     name: 'barometer-daily-{stream}'
122
123     project-type: freestyle
124
125     disabled: '{obj:disabled}'
126
127     concurrent: true
128
129     properties:
130         - logrotate-default
131         - throttle:
132             enabled: true
133             max-total: 3
134             max-per-node: 2
135             option: 'project'
136
137     parameters:
138         - project-parameter:
139             project: '{project}'
140             branch: '{branch}'
141         - 'opnfv-build-ubuntu-defaults'
142
143     scm:
144         - git-scm
145
146     triggers:
147          - timed: '@midnight'
148
149     builders:
150         - shell: |
151             pwd
152             cd src
153             ./install_build_deps.sh
154             make clobber
155             make