fix ci jobs (daily && no branch param)
[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         - 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         - gerrit-parameter:
77             branch: '{branch}'
78         - 'opnfv-build-centos-defaults'
79         - string:
80             name: GS_URL
81             default: '$GS_BASE{gs-pathname}'
82             description: "Directory where the build artifact will be located upon the completion of the build."
83
84     scm:
85         - git-scm
86
87     wrappers:
88         - timeout:
89             timeout: 24
90             fail: true
91
92     triggers:
93         - gerrit:
94             server-name: 'gerrit.opnfv.org'
95             trigger-on:
96                 - change-merged-event
97                 - comment-added-contains-event:
98                     comment-contains-value: 'remerge'
99             projects:
100               - project-compare-type: 'ANT'
101                 project-pattern: '{project}'
102                 branches:
103                   - branch-compare-type: 'ANT'
104                     branch-pattern: '**/{branch}'
105                 file-paths:
106                   - compare-type: ANT
107                     pattern: 'build/**'
108                   - compare-type: ANT
109                     pattern: 'ci/**'
110
111     builders:
112         - build-rpms
113
114 - job-template:
115     name: 'ovsnfv-daily-{stream}'
116
117     disabled: '{obj:disabled}'
118
119     parameters:
120         - project-parameter:
121             project: '{project}'
122         - gerrit-parameter:
123             branch: '{branch}'
124         - 'opnfv-build-centos-defaults'
125         - string:
126             name: GS_URL
127             default: '$GS_BASE{gs-pathname}'
128             description: "Directory where the build artifact will be located upon the completion of the build."
129
130     scm:
131         - git-scm
132
133     wrappers:
134         - timeout:
135             timeout: 24
136             fail: true
137
138     triggers:
139         - timed: '@midnight'
140
141     builders:
142         - build-rpms
143
144     publishers:
145         - email:
146             recipients: therbert@redhat.com mark.d.gray@intel.com billy.o.mahony@intel.com
147
148 - builder:
149     name: build-rpms
150     builders:
151         - shell: |
152             #!/bin/bash
153             set -o errexit
154             set -o nounset
155             set -o pipefail
156
157             cd $WORKSPACE/ci
158             ./build.sh