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