1c5810a03ebdb549114c228cc8c2b339621db936
[releng.git] / jjb / ovsnfv / ovsnfv.yml
1 - project:
2     name: ovsnfv
3     jobs:
4         - 'ovsnfv-verify-{stream}'
5         - 'ovsnfv-merge-{stream}'
6         - 'ovsnfv-daily-{stream}'
7
8     stream:
9         - master:
10             branch: 'master'
11
12     project: 'ovsnfv'
13
14 - job-template:
15     name: 'ovsnfv-verify-{stream}'
16
17     node: opnfv-build
18
19     project-type: freestyle
20
21     logrotate:
22         daysToKeep: 30
23         numToKeep: 10
24         artifactDaysToKeep: -1
25         artifactNumToKeep: -1
26
27     parameters:
28         - project-parameter:
29             project: '{project}'
30         - gerrit-parameter:
31             branch: 'master'
32         - string:
33             name: GIT_BASE
34             default: https://gerrit.opnfv.org/gerrit/$PROJECT
35             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
36
37     scm:
38         - gerrit-trigger-scm:
39             credentials-id: '{ssh-credentials}'
40             refspec: '$GERRIT_REFSPEC'
41             choosing-strategy: 'gerrit'
42
43     triggers:
44         - gerrit:
45             trigger-on:
46                 - patchset-created-event:
47                     exclude-drafts: 'false'
48                     exclude-trivial-rebase: 'false'
49                     exclude-no-code-change: 'false'
50                 - draft-published-event
51                 - comment-added-contains-event:
52                     comment-contains-value: 'recheck'
53                 - comment-added-contains-event:
54                     comment-contains-value: 'reverify'
55             projects:
56               - project-compare-type: 'ANT'
57                 project-pattern: 'ovsnfv'
58                 branches:
59                   - branch-compare-type: 'ANT'
60                     branch-pattern: '**/master'
61
62     builders:
63         - shell: |
64             #!/bin/bash
65             set -o errexit
66             set -o nounset
67             set -o pipefail
68
69             cd $WORKSPACE/ci
70             ./build.sh
71
72 - job-template:
73     name: 'ovsnfv-merge-{stream}'
74
75     node: opnfv-build
76
77     project-type: freestyle
78
79     logrotate:
80         daysToKeep: 30
81         numToKeep: 40
82         artifactDaysToKeep: -1
83         artifactNumToKeep: 5
84
85     parameters:
86         - project-parameter:
87             project: '{project}'
88         - gerrit-parameter:
89             branch: 'master'
90         - string:
91             name: GIT_BASE
92             default: https://gerrit.opnfv.org/gerrit/$PROJECT
93             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
94
95     scm:
96         - gerrit-trigger-scm:
97             credentials-id: '{ssh-credentials}'
98             refspec: ''
99             choosing-strategy: 'default'
100
101     triggers:
102         - gerrit:
103             trigger-on:
104                 - change-merged-event
105                 - comment-added-contains-event:
106                     comment-contains-value: 'remerge'
107             projects:
108               - project-compare-type: 'ANT'
109                 project-pattern: 'ovsnfv'
110                 branches:
111                     - branch-compare-type: 'ANT'
112                       branch-pattern: '**/master'
113
114     builders:
115         - shell: |
116             #!/bin/bash
117             set -o errexit
118             set -o nounset
119             set -o pipefail
120
121             cd $WORKSPACE/ci
122             ./build.sh
123
124
125 - job-template:
126     name: 'ovsnfv-daily-{stream}'
127
128     node: opnfv-build
129
130     disabled: true
131
132     project-type: freestyle
133
134     logrotate:
135         daysToKeep: '{build-days-to-keep}'
136         numToKeep: '{build-num-to-keep}'
137         artifactDaysToKeep: '{build-artifact-days-to-keep}'
138         artifactNumToKeep: '{build-artifact-num-to-keep}'
139
140     parameters:
141         - project-parameter:
142             project: '{project}'
143         - string:
144             name: GIT_BASE
145             default: https://gerrit.opnfv.org/gerrit/$PROJECT
146             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
147
148     scm:
149         - git-scm:
150             credentials-id: '{ssh-credentials}'
151             refspec: ''
152             branch: '{branch}'
153
154     triggers:
155         - timed: '@midnight'
156
157     builders:
158         - shell: |
159             #!/bin/bash
160             set -o errexit
161             set -o nounset
162             set -o pipefail
163
164             cd $WORKSPACE/ci
165             ./build.sh