Merge "Fix RegExp issue for sfc scenario"
[releng.git] / jjb / clover / clover-project.yml
1 ---
2 ###################################################
3 # All the jobs except verify have been removed!
4 # They will only be enabled on request by projects!
5 ###################################################
6 - project:
7     name: clover
8
9     project: '{name}'
10
11     jobs:
12       - 'clover-verify-{stream}'
13       - 'clover-daily-upload-{stream}'
14       - 'clover-daily-deploy-{stream}'
15
16     stream:
17       - master:
18           branch: '{stream}'
19           gs-pathname: ''
20           disabled: false
21
22 - job-template:
23     name: 'clover-verify-{stream}'
24
25     disabled: '{obj:disabled}'
26
27     parameters:
28       - project-parameter:
29           project: '{project}'
30           branch: '{branch}'
31       # yamllint disable rule:line-length
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       # yamllint enable rule:line-length
37       - 'opnfv-build-ubuntu-defaults'
38
39     scm:
40       - git-scm-gerrit
41
42     triggers:
43       - gerrit:
44           server-name: 'gerrit.opnfv.org'
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: '{project}'
58               branches:
59                 - branch-compare-type: 'ANT'
60                   branch-pattern: '**/{branch}'
61               disable-strict-forbidden-file-verification: 'true'
62               forbidden-file-paths:
63                 - compare-type: ANT
64                   pattern: 'docs/**|.gitignore'
65
66     builders:
67       - shell: |
68           cd $WORKSPACE/ci
69           ./verify.sh
70
71 - job-template:
72     name: 'clover-daily-upload-{stream}'
73
74     disabled: '{obj:disabled}'
75
76     concurrent: false
77
78     scm:
79       - git-scm
80
81     triggers:
82       - timed: '0 11 * * *'
83
84     wrappers:
85       - fix-workspace-permissions
86
87     parameters:
88       - project-parameter:
89           project: '{project}'
90           branch: '{branch}'
91       - 'opnfv-build-ubuntu-defaults'
92       - 'clover-defaults':
93           gs-pathname: '{gs-pathname}'
94
95     builders:
96       - shell: |
97           cd $WORKSPACE/ci
98           ./upload.sh
99
100 - job-template:
101     name: 'clover-daily-deploy-{stream}'
102
103     project-type: freestyle
104
105     disabled: '{obj:disabled}'
106
107     concurrent: false
108
109     properties:
110       - logrotate-default
111       - throttle:
112           enabled: true
113           max-per-node: 1
114           option: 'project'
115       - build-blocker:
116           use-build-blocker: true
117           blocking-jobs:
118             - 'clover-daily-deploy-.*?'
119             - 'container4nfv-daily-deploy-.*?'
120           block-level: 'NODE'
121
122     wrappers:
123       - timeout:
124           timeout: 180
125           abort: true
126       - fix-workspace-permissions
127
128     parameters:
129       - project-parameter:
130           project: '{project}'
131           branch: '{branch}'
132       # yamllint disable rule:line-length
133       - string:
134           name: GIT_BASE
135           default: https://gerrit.opnfv.org/gerrit/$PROJECT
136           description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
137       # yamllint enable rule:line-length
138       - node:
139           name: SLAVE_NAME
140           description: 'Slave name on Jenkins'
141           allowed-slaves:
142             - huawei-virtual6
143           default-slaves:
144             - huawei-virtual6
145
146     scm:
147       - git-scm
148
149     triggers:
150       - timed: '0 12 * * *'
151
152     builders:
153       - shell: |
154           cd $WORKSPACE/ci
155           ./deploy.sh
156
157 ###################
158 # parameter macros
159 ###################
160 - parameter:
161     name: 'clover-defaults'
162     parameters:
163       - string:
164           name: GS_URL
165           default: artifacts.opnfv.org/$PROJECT{gs-pathname}
166           description: "URL to Google Storage."