jjb: move project-style to releng-defaults.yaml
[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     logrotate:
76         daysToKeep: 30
77         numToKeep: 40
78         artifactDaysToKeep: -1
79         artifactNumToKeep: 5
80
81     parameters:
82         - project-parameter:
83             project: '{project}'
84         - gerrit-parameter:
85             branch: 'master'
86         - string:
87             name: GIT_BASE
88             default: https://gerrit.opnfv.org/gerrit/$PROJECT
89             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
90
91     scm:
92         - gerrit-trigger-scm:
93             credentials-id: '{ssh-credentials}'
94             refspec: ''
95             choosing-strategy: 'default'
96
97     triggers:
98         - gerrit:
99             trigger-on:
100                 - change-merged-event
101                 - comment-added-contains-event:
102                     comment-contains-value: 'remerge'
103             projects:
104               - project-compare-type: 'ANT'
105                 project-pattern: 'ovsnfv'
106                 branches:
107                     - branch-compare-type: 'ANT'
108                       branch-pattern: '**/master'
109
110     builders:
111         - shell: |
112             #!/bin/bash
113             set -o errexit
114             set -o nounset
115             set -o pipefail
116
117             cd $WORKSPACE/ci
118             ./build.sh
119
120 - job-template:
121     name: 'ovsnfv-daily-{stream}'
122
123     node: opnfv-build
124
125     disabled: true
126
127     logrotate:
128         daysToKeep: '{build-days-to-keep}'
129         numToKeep: '{build-num-to-keep}'
130         artifactDaysToKeep: '{build-artifact-days-to-keep}'
131         artifactNumToKeep: '{build-artifact-num-to-keep}'
132
133     parameters:
134         - project-parameter:
135             project: '{project}'
136         - string:
137             name: GIT_BASE
138             default: https://gerrit.opnfv.org/gerrit/$PROJECT
139             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
140
141     scm:
142         - git-scm:
143             credentials-id: '{ssh-credentials}'
144             refspec: ''
145             branch: '{branch}'
146
147     triggers:
148         - timed: '@midnight'
149
150     builders:
151         - shell: |
152             #!/bin/bash
153             set -o errexit
154             set -o nounset
155             set -o pipefail
156
157             cd $WORKSPACE/ci
158             ./build.sh