Merge "Integrate vsperf with opnfv_test_dashboard"
[releng.git] / jjb / kvmfornfv / kvmfornfv.yml
1 - project:
2     name: kvmfornfv
3     jobs:
4         - 'kvmfornfv-verify-{stream}'
5         - 'kvmfornfv-merge-{stream}'
6
7     # stream:    branch with - in place of / (eg. stable-arno)
8     # branch:    branch (eg. stable/arno)
9     stream:
10         - master:
11             branch: 'master'
12
13     project: 'kvmfornfv'
14
15 - job-template:
16     name: 'kvmfornfv-verify-{stream}'
17
18     node: ericsson-build
19
20     project-type: freestyle
21
22     logrotate:
23         daysToKeep: 30
24         numToKeep: 10
25         artifactDaysToKeep: -1
26         artifactNumToKeep: -1
27
28     parameters:
29         - project-parameter:
30             project: '{project}'
31         - gerrit-parameter:
32             branch: 'master'
33         - string:
34             name: GIT_BASE
35             default: https://gerrit.opnfv.org/gerrit/$PROJECT
36             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
37
38     scm:
39         - gerrit-trigger-scm:
40             credentials-id: '{ssh-credentials}'
41             refspec: '$GERRIT_REFSPEC'
42             choosing-strategy: 'gerrit'
43
44     wrappers:
45         - ssh-agent-credentials:
46             user: '{ssh-credentials}'
47
48     triggers:
49         - gerrit:
50             trigger-on:
51                 - patchset-created-event:
52                     exclude-drafts: 'false'
53                     exclude-trivial-rebase: 'false'
54                     exclude-no-code-change: 'false'
55                 - draft-published-event
56                 - comment-added-contains-event:
57                     comment-contains-value: 'recheck'
58                 - comment-added-contains-event:
59                     comment-contains-value: 'reverify'
60             projects:
61               - project-compare-type: 'ANT'
62                 project-pattern: 'kvmfornfv'
63                 branches:
64                   - branch-compare-type: 'ANT'
65                     branch-pattern: '**/master'
66
67     builders:
68         - shell:
69             !include-raw ./kvmfornfv-build.sh
70
71 - job-template:
72     name: 'kvmfornfv-merge-{stream}'
73
74     # builder-merge job to run JJB update
75     #
76     # This job's purpose is to update all the JJB
77
78     node: ericsson-build
79
80     project-type: freestyle
81
82     logrotate:
83         daysToKeep: 30
84         numToKeep: 40
85         artifactDaysToKeep: -1
86         artifactNumToKeep: 5
87
88     parameters:
89         - project-parameter:
90             project: '{project}'
91         - gerrit-parameter:
92             branch: 'master'
93         - string:
94             name: GIT_BASE
95             default: https://gerrit.opnfv.org/gerrit/$PROJECT
96             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
97
98     scm:
99         - gerrit-trigger-scm:
100             credentials-id: '{ssh-credentials}'
101             refspec: ''
102             choosing-strategy: 'default'
103
104     wrappers:
105         - ssh-agent-credentials:
106             user: '{ssh-credentials}'
107
108     triggers:
109         - gerrit:
110             trigger-on:
111                 - change-merged-event
112                 - comment-added-contains-event:
113                     comment-contains-value: 'remerge'
114             projects:
115               - project-compare-type: 'ANT'
116                 project-pattern: 'kvmfornfv'
117                 branches:
118                     - branch-compare-type: 'ANT'
119                       branch-pattern: '**/master'
120
121     builders:
122         - shell:
123             !include-raw ./kvmfornfv-build.sh