Add timeout to ovsnfv merge and daily 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     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
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-build2-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
106     builders:
107         - shell: |
108             #!/bin/bash
109             set -o errexit
110             set -o nounset
111             set -o pipefail
112
113             cd $WORKSPACE/ci
114             ./build.sh
115
116 - job-template:
117     name: 'ovsnfv-daily-{stream}'
118
119     parameters:
120         - project-parameter:
121             project: '{project}'
122         - 'intel-build2-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         - shell: |
144             #!/bin/bash
145             set -o errexit
146             set -o nounset
147             set -o pipefail
148
149             cd $WORKSPACE/ci
150             ./build.sh