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