Merge "Enable brahmaputra branch for doc verify and merge jobs"
[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 # only master branch is enabled at the moment to keep no of jobs sane
12     stream:
13         - master:
14             branch: '{stream}'
15             gs-pathname: ''
16 #        - brahmaputra:
17 #            branch: 'stable/brahmaputra'
18 #            gs-pathname: '/{stream}'
19
20 - job-template:
21     name: 'ovsnfv-verify-{stream}'
22
23     parameters:
24         - project-parameter:
25             project: '{project}'
26         - gerrit-parameter:
27             branch: '{branch}'
28         - 'intel-us-build-2-defaults'
29         - string:
30             name: GS_URL
31             default: '$GS_BASE{gs-pathname}'
32             description: "Directory where the build artifact will be located upon the completion of the build."
33
34     scm:
35         - gerrit-trigger-scm:
36             credentials-id: '{ssh-credentials}'
37             refspec: '$GERRIT_REFSPEC'
38             choosing-strategy: 'gerrit'
39
40     triggers:
41         - gerrit:
42             trigger-on:
43                 - patchset-created-event:
44                     exclude-drafts: 'false'
45                     exclude-trivial-rebase: 'false'
46                     exclude-no-code-change: 'false'
47                 - draft-published-event
48                 - comment-added-contains-event:
49                     comment-contains-value: 'recheck'
50                 - comment-added-contains-event:
51                     comment-contains-value: 'reverify'
52             projects:
53               - project-compare-type: 'ANT'
54                 project-pattern: '{project}'
55                 branches:
56                   - branch-compare-type: 'ANT'
57                     branch-pattern: '**/{branch}'
58
59     builders:
60         - shell: |
61             #!/bin/bash
62             set -o errexit
63             set -o nounset
64             set -o pipefail
65
66             cd $WORKSPACE/ci
67             ./build.sh
68
69 - job-template:
70     name: 'ovsnfv-merge-{stream}'
71
72     parameters:
73         - project-parameter:
74             project: '{project}'
75         - gerrit-parameter:
76             branch: '{branch}'
77         - 'intel-us-build-2-defaults'
78         - string:
79             name: GS_URL
80             default: '$GS_BASE{gs-pathname}'
81             description: "Directory where the build artifact will be located upon the completion of the build."
82
83     scm:
84         - gerrit-trigger-scm:
85             credentials-id: '{ssh-credentials}'
86             refspec: ''
87             choosing-strategy: 'default'
88
89     triggers:
90         - gerrit:
91             trigger-on:
92                 - change-merged-event
93                 - comment-added-contains-event:
94                     comment-contains-value: 'remerge'
95             projects:
96               - project-compare-type: 'ANT'
97                 project-pattern: '{project}'
98                 branches:
99                     - branch-compare-type: 'ANT'
100                       branch-pattern: '**/{branch}'
101
102     builders:
103         - shell: |
104             #!/bin/bash
105             set -o errexit
106             set -o nounset
107             set -o pipefail
108
109             cd $WORKSPACE/ci
110             ./build.sh
111
112 - job-template:
113     name: 'ovsnfv-daily-{stream}'
114
115     parameters:
116         - project-parameter:
117             project: '{project}'
118         - 'intel-us-build-2-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     triggers:
131         - timed: '@midnight'
132
133     builders:
134         - shell: |
135             #!/bin/bash
136             set -o errexit
137             set -o nounset
138             set -o pipefail
139
140             cd $WORKSPACE/ci
141             ./build.sh