d0c180c5b2370d9346a4387a164492333ae38b44
[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-us-build-2-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
58     builders:
59         - shell: |
60             #!/bin/bash
61             set -o errexit
62             set -o nounset
63             set -o pipefail
64
65             cd $WORKSPACE/ci
66             ./build.sh
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         - 'intel-us-build-2-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     triggers:
89         - gerrit:
90             trigger-on:
91                 - change-merged-event
92                 - comment-added-contains-event:
93                     comment-contains-value: 'remerge'
94             projects:
95               - project-compare-type: 'ANT'
96                 project-pattern: '{project}'
97                 branches:
98                     - branch-compare-type: 'ANT'
99                       branch-pattern: '**/{branch}'
100
101     builders:
102         - shell: |
103             #!/bin/bash
104             set -o errexit
105             set -o nounset
106             set -o pipefail
107
108             cd $WORKSPACE/ci
109             ./build.sh
110
111 - job-template:
112     name: 'ovsnfv-daily-{stream}'
113
114     parameters:
115         - project-parameter:
116             project: '{project}'
117         - 'intel-us-build-2-defaults'
118         - string:
119             name: GS_URL
120             default: '$GS_BASE{gs-pathname}'
121             description: "Directory where the build artifact will be located upon the completion of the build."
122
123     scm:
124         - git-scm:
125             credentials-id: '{ssh-credentials}'
126             refspec: ''
127             branch: '{branch}'
128
129     triggers:
130         - timed: '@midnight'
131
132     builders:
133         - shell: |
134             #!/bin/bash
135             set -o errexit
136             set -o nounset
137             set -o pipefail
138
139             cd $WORKSPACE/ci
140             ./build.sh