28d2683794cfc8853fb3e4d55ef4465d29aee05c
[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         - colorado:
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         - gerrit-parameter:
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         - gerrit-trigger-scm:
39             credentials-id: '{ssh-credentials}'
40             refspec: '$GERRIT_REFSPEC'
41             choosing-strategy: '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                 file-paths:
63                   - compare-type: ANT
64                     pattern: 'build/**'
65                   - compare-type: ANT
66                     pattern: 'ci/**'
67
68     builders:
69         - build-rpms
70
71 - job-template:
72     name: 'ovsnfv-merge-{stream}'
73
74     disabled: '{obj:disabled}'
75
76     parameters:
77         - project-parameter:
78             project: '{project}'
79         - gerrit-parameter:
80             branch: '{branch}'
81         - 'opnfv-build-centos-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         - gerrit-trigger-scm:
89             credentials-id: '{ssh-credentials}'
90             refspec: ''
91             choosing-strategy: 'default'
92
93     wrappers:
94         - timeout:
95             timeout: 24
96             fail: true
97
98     triggers:
99         - gerrit:
100             server-name: 'gerrit.opnfv.org'
101             trigger-on:
102                 - change-merged-event
103                 - comment-added-contains-event:
104                     comment-contains-value: 'remerge'
105             projects:
106               - project-compare-type: 'ANT'
107                 project-pattern: '{project}'
108                 branches:
109                   - branch-compare-type: 'ANT'
110                     branch-pattern: '**/{branch}'
111                 file-paths:
112                   - compare-type: ANT
113                     pattern: 'build/**'
114                   - compare-type: ANT
115                     pattern: 'ci/**'
116
117     builders:
118         - build-rpms
119
120 - job-template:
121     name: 'ovsnfv-daily-{stream}'
122
123     disabled: '{obj:disabled}'
124
125     parameters:
126         - project-parameter:
127             project: '{project}'
128         - 'opnfv-build-centos-defaults'
129         - string:
130             name: GS_URL
131             default: '$GS_BASE{gs-pathname}'
132             description: "Directory where the build artifact will be located upon the completion of the build."
133
134     scm:
135         - git-scm:
136             credentials-id: '{ssh-credentials}'
137             refspec: ''
138             branch: '{branch}'
139
140     wrappers:
141         - timeout:
142             timeout: 24
143             fail: true
144
145     triggers:
146         - timed: '@midnight'
147
148     builders:
149         - build-rpms
150
151     publishers:
152         - email:
153             recipients: therbert@redhat.com mark.d.gray@intel.com billy.o.mahony@intel.com
154
155 - builder:
156     name: build-rpms
157     builders:
158         - shell: |
159             #!/bin/bash
160             set -o errexit
161             set -o nounset
162             set -o pipefail
163
164             cd $WORKSPACE/ci
165             ./build.sh