Adding coverage report to merge job
[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     logrotate:
20         daysToKeep: 30
21         numToKeep: 10
22         artifactDaysToKeep: -1
23         artifactNumToKeep: -1
24
25     parameters:
26         - project-parameter:
27             project: '{project}'
28         - gerrit-parameter:
29             branch: 'master'
30         - string:
31             name: GIT_BASE
32             default: https://gerrit.opnfv.org/gerrit/$PROJECT
33             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
34
35     scm:
36         - gerrit-trigger-scm:
37             credentials-id: '{ssh-credentials}'
38             refspec: '$GERRIT_REFSPEC'
39             choosing-strategy: 'gerrit'
40
41     triggers:
42         - gerrit:
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: 'ovsnfv'
56                 branches:
57                   - branch-compare-type: 'ANT'
58                     branch-pattern: '**/master'
59
60     builders:
61         - shell: |
62             #!/bin/bash
63             set -o errexit
64             set -o nounset
65             set -o pipefail
66
67             cd $WORKSPACE/ci
68             ./build.sh
69
70 - job-template:
71     name: 'ovsnfv-merge-{stream}'
72
73     node: opnfv-build
74
75     parameters:
76         - project-parameter:
77             project: '{project}'
78         - gerrit-parameter:
79             branch: 'master'
80         - string:
81             name: GIT_BASE
82             default: https://gerrit.opnfv.org/gerrit/$PROJECT
83             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
84
85     scm:
86         - gerrit-trigger-scm:
87             credentials-id: '{ssh-credentials}'
88             refspec: ''
89             choosing-strategy: 'default'
90
91     triggers:
92         - gerrit:
93             trigger-on:
94                 - change-merged-event
95                 - comment-added-contains-event:
96                     comment-contains-value: 'remerge'
97             projects:
98               - project-compare-type: 'ANT'
99                 project-pattern: 'ovsnfv'
100                 branches:
101                     - branch-compare-type: 'ANT'
102                       branch-pattern: '**/master'
103
104     builders:
105         - shell: |
106             #!/bin/bash
107             set -o errexit
108             set -o nounset
109             set -o pipefail
110
111             cd $WORKSPACE/ci
112             ./build.sh
113
114 - job-template:
115     name: 'ovsnfv-daily-{stream}'
116
117     node: opnfv-build
118
119     disabled: true
120
121     parameters:
122         - project-parameter:
123             project: '{project}'
124         - string:
125             name: GIT_BASE
126             default: https://gerrit.opnfv.org/gerrit/$PROJECT
127             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
128
129     scm:
130         - git-scm:
131             credentials-id: '{ssh-credentials}'
132             refspec: ''
133             branch: '{branch}'
134
135     triggers:
136         - timed: '@midnight'
137
138     builders:
139         - shell: |
140             #!/bin/bash
141             set -o errexit
142             set -o nounset
143             set -o pipefail
144
145             cd $WORKSPACE/ci
146             ./build.sh