62f6de05a3789fe78c30c036a8a326a86a0314da
[releng.git] / jjb / ovsnfv / ovsnfv.yml
1 - project:
2     name: ovsnfv
3
4     project: '{name}'
5
6     jobs:
7         - 'ovsnfv-verify-{stream}'
8         - 'ovsnfv-merge-{stream}'
9         - 'ovsnfv-daily-{stream}'
10
11     stream:
12         - master:
13             branch: '{stream}'
14             gs-pathname: ''
15             disabled: false
16         - danube:
17             branch: 'stable/{stream}'
18             gs-pathname: '/{stream}'
19             disabled: false
20
21 - job-template:
22     name: 'ovsnfv-verify-{stream}'
23
24     disabled: '{obj:disabled}'
25
26     parameters:
27         - project-parameter:
28             project: '{project}'
29             branch: '{branch}'
30         - 'opnfv-build-centos-defaults'
31         - string:
32             name: GS_URL
33             default: '$GS_BASE{gs-pathname}'
34             description: "Directory where the build artifact will be located upon the completion of the build."
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                 file-paths:
59                   - compare-type: ANT
60                     pattern: 'build/**'
61                   - compare-type: ANT
62                     pattern: 'ci/**'
63
64     builders:
65         - build-rpms
66
67 - job-template:
68     name: 'ovsnfv-merge-{stream}'
69
70     disabled: '{obj:disabled}'
71
72     parameters:
73         - project-parameter:
74             project: '{project}'
75             branch: '{branch}'
76         - 'opnfv-build-centos-defaults'
77         - string:
78             name: GS_URL
79             default: '$GS_BASE{gs-pathname}'
80             description: "Directory where the build artifact will be located upon the completion of the build."
81
82     scm:
83         - git-scm
84
85     wrappers:
86         - timeout:
87             timeout: 24
88             fail: true
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                 file-paths:
104                   - compare-type: ANT
105                     pattern: 'build/**'
106                   - compare-type: ANT
107                     pattern: 'ci/**'
108
109     builders:
110         - build-rpms
111
112 - job-template:
113     name: 'ovsnfv-daily-{stream}'
114
115     disabled: '{obj:disabled}'
116
117     parameters:
118         - project-parameter:
119             project: '{project}'
120             branch: '{branch}'
121         - 'opnfv-build-centos-defaults'
122         - string:
123             name: GS_URL
124             default: '$GS_BASE{gs-pathname}'
125             description: "Directory where the build artifact will be located upon the completion of the build."
126
127     scm:
128         - git-scm
129
130     wrappers:
131         - timeout:
132             timeout: 24
133             fail: true
134
135     triggers:
136         - timed: '@midnight'
137
138     builders:
139         - build-rpms
140
141     publishers:
142         - email:
143             recipients: therbert@redhat.com mark.d.gray@intel.com billy.o.mahony@intel.com
144         - email-jenkins-admins-on-failure
145
146 - builder:
147     name: build-rpms
148     builders:
149         - shell: |
150             #!/bin/bash
151             set -o errexit
152             set -o nounset
153             set -o pipefail
154
155             cd $WORKSPACE/ci
156             ./build.sh