Merge "Create Stable Branch Jobs for clover"
[releng.git] / jjb / ovsnfv / ovsnfv.yaml
1 ---
2 - project:
3     name: ovsnfv
4
5     project: '{name}'
6
7     jobs:
8       - 'ovsnfv-verify-{stream}'
9       - 'ovsnfv-merge-{stream}'
10       - 'ovsnfv-daily-{stream}'
11
12     stream:
13       - master:
14           branch: '{stream}'
15           gs-pathname: ''
16           disabled: false
17       - euphrates:
18           branch: 'stable/{stream}'
19           gs-pathname: '/{stream}'
20           disabled: false
21
22 - job-template:
23     name: 'ovsnfv-verify-{stream}'
24
25     disabled: '{obj:disabled}'
26
27     parameters:
28       - project-parameter:
29           project: '{project}'
30           branch: '{branch}'
31       - 'opnfv-build-centos-defaults'
32       - string:
33           name: GS_URL
34           default: '$GS_BASE{gs-pathname}'
35           description: "Directory where the build artifact will be located upon the completion of the build."
36
37     scm:
38       - git-scm-gerrit
39
40     triggers:
41       - gerrit:
42           server-name: 'gerrit.opnfv.org'
43           trigger-on:
44             - patchset-created-event:
45                 exclude-drafts: 'false'
46                 exclude-trivial-rebase: 'false'
47                 exclude-no-code-change: 'false'
48             - draft-published-event
49             - comment-added-contains-event:
50                 comment-contains-value: 'recheck'
51             - comment-added-contains-event:
52                 comment-contains-value: 'reverify'
53           projects:
54             - project-compare-type: 'ANT'
55               project-pattern: '{project}'
56               branches:
57                 - branch-compare-type: 'ANT'
58                   branch-pattern: '**/{branch}'
59               file-paths:
60                 - compare-type: ANT
61                   pattern: 'build/**'
62                 - compare-type: ANT
63                   pattern: 'ci/**'
64
65     builders:
66       - build-rpms
67
68 - job-template:
69     name: 'ovsnfv-merge-{stream}'
70
71     disabled: '{obj:disabled}'
72
73     parameters:
74       - project-parameter:
75           project: '{project}'
76           branch: '{branch}'
77       - 'opnfv-build-centos-defaults'
78       - string:
79           name: GS_URL
80           default: '$GS_BASE{gs-pathname}'
81           description: "Directory where the build artifact will be located upon the completion of the build."
82
83     scm:
84       - git-scm
85
86     wrappers:
87       - timeout:
88           timeout: 24
89           fail: true
90
91     triggers:
92       - gerrit:
93           server-name: 'gerrit.opnfv.org'
94           trigger-on:
95             - change-merged-event
96             - comment-added-contains-event:
97                 comment-contains-value: 'remerge'
98           projects:
99             - project-compare-type: 'ANT'
100               project-pattern: '{project}'
101               branches:
102                 - branch-compare-type: 'ANT'
103                   branch-pattern: '**/{branch}'
104               file-paths:
105                 - compare-type: ANT
106                   pattern: 'build/**'
107                 - compare-type: ANT
108                   pattern: 'ci/**'
109
110     builders:
111       - build-rpms
112
113 - job-template:
114     name: 'ovsnfv-daily-{stream}'
115
116     disabled: 'true'
117
118     parameters:
119       - project-parameter:
120           project: '{project}'
121           branch: '{branch}'
122       - 'opnfv-build-centos-defaults'
123       - string:
124           name: GS_URL
125           default: '$GS_BASE{gs-pathname}'
126           description: "Directory where the build artifact will be located upon the completion of the build."
127
128     scm:
129       - git-scm
130
131     wrappers:
132       - timeout:
133           timeout: 24
134           fail: true
135
136     triggers:
137       - timed: '@midnight'
138
139     builders:
140       - build-rpms
141
142     publishers:
143       - email:
144           recipients: therbert@redhat.com mark.d.gray@intel.com billy.o.mahony@intel.com
145       - email-jenkins-admins-on-failure
146
147 - builder:
148     name: build-rpms
149     builders:
150       - shell: |
151           #!/bin/bash
152           set -o errexit
153           set -o nounset
154           set -o pipefail
155
156           cd $WORKSPACE/ci
157           ./build.sh