jjb: move ssh wrappers to releng-defaults.yaml
[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     triggers:
45         - gerrit:
46             trigger-on:
47                 - patchset-created-event:
48                     exclude-drafts: 'false'
49                     exclude-trivial-rebase: 'false'
50                     exclude-no-code-change: 'false'
51                 - draft-published-event
52                 - comment-added-contains-event:
53                     comment-contains-value: 'recheck'
54                 - comment-added-contains-event:
55                     comment-contains-value: 'reverify'
56             projects:
57               - project-compare-type: 'ANT'
58                 project-pattern: 'kvmfornfv'
59                 branches:
60                   - branch-compare-type: 'ANT'
61                     branch-pattern: '**/master'
62
63     builders:
64         - shell:
65             !include-raw ./kvmfornfv-build.sh
66
67 - job-template:
68     name: 'kvmfornfv-merge-{stream}'
69
70     # builder-merge job to run JJB update
71     #
72     # This job's purpose is to update all the JJB
73
74     node: ericsson-build
75
76     project-type: freestyle
77
78     logrotate:
79         daysToKeep: 30
80         numToKeep: 40
81         artifactDaysToKeep: -1
82         artifactNumToKeep: 5
83
84     parameters:
85         - project-parameter:
86             project: '{project}'
87         - gerrit-parameter:
88             branch: 'master'
89         - string:
90             name: GIT_BASE
91             default: https://gerrit.opnfv.org/gerrit/$PROJECT
92             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
93
94     scm:
95         - gerrit-trigger-scm:
96             credentials-id: '{ssh-credentials}'
97             refspec: ''
98             choosing-strategy: 'default'
99
100     triggers:
101         - gerrit:
102             trigger-on:
103                 - change-merged-event
104                 - comment-added-contains-event:
105                     comment-contains-value: 'remerge'
106             projects:
107               - project-compare-type: 'ANT'
108                 project-pattern: 'kvmfornfv'
109                 branches:
110                     - branch-compare-type: 'ANT'
111                       branch-pattern: '**/master'
112
113     builders:
114         - shell:
115             !include-raw ./kvmfornfv-build.sh