Merge "adding testing builder"
[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         - brahmaputra:
17             branch: 'stable/{stream}'
18             gs-pathname: '/{stream}'
19             disabled: true
20
21 - job-template:
22     name: 'ovsnfv-verify-{stream}'
23
24     parameters:
25         - project-parameter:
26             project: '{project}'
27         - gerrit-parameter:
28             branch: '{branch}'
29         - 'opnfv-build-centos-defaults'
30         - string:
31             name: GS_URL
32             default: '$GS_BASE{gs-pathname}'
33             description: "Directory where the build artifact will be located upon the completion of the build."
34
35     scm:
36         - gerrit-trigger-scm:
37             credentials-id: '{ssh-credentials}'
38             refspec: '$GERRIT_REFSPEC'
39             choosing-strategy: 'gerrit'
40
41     triggers:
42         - gerrit:
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     parameters:
72         - project-parameter:
73             project: '{project}'
74         - gerrit-parameter:
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         - gerrit-trigger-scm:
84             credentials-id: '{ssh-credentials}'
85             refspec: ''
86             choosing-strategy: 'default'
87
88     wrappers:
89         - timeout:
90             timeout: 24
91             fail: true
92
93     triggers:
94         - gerrit:
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         - '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             credentials-id: '{ssh-credentials}'
131             refspec: ''
132             branch: '{branch}'
133
134     wrappers:
135         - timeout:
136             timeout: 24
137             fail: true
138
139     triggers:
140         - timed: '@midnight'
141
142     builders:
143         - build-rpms
144
145     publishers:
146         - email:
147             recipients: therbert@redhat.com mark.d.gray@intel.com billy.o.mahony@intel.com
148
149 - builder:
150     name: build-rpms
151     builders:
152         - shell: |
153             #!/bin/bash
154             set -o errexit
155             set -o nounset
156             set -o pipefail
157
158             cd $WORKSPACE/ci
159             ./build.sh