clean scm defenitions
[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         - '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
131     wrappers:
132         - timeout:
133             timeout: 24
134             fail: true
135
136     triggers:
137         - timed: '@midnight'
138
139     builders:
140         - build-rpms
141
142     publishers:
143         - email:
144             recipients: therbert@redhat.com mark.d.gray@intel.com billy.o.mahony@intel.com
145
146 - builder:
147     name: build-rpms
148     builders:
149         - shell: |
150             #!/bin/bash
151             set -o errexit
152             set -o nounset
153             set -o pipefail
154
155             cd $WORKSPACE/ci
156             ./build.sh