Enable all yardstick tasks on baremetal for daisy
[releng.git] / jjb / container4nfv / container4nfv-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: container4nfv
8
9     project: '{name}'
10
11     jobs:
12       - 'container4nfv-verify-{stream}'
13       - 'container4nfv-daily-upload-{stream}'
14       - 'container4nfv-daily-deploy-{stream}'
15
16     stream:
17       - master:
18           branch: '{stream}'
19           gs-pathname: ''
20           disabled: false
21       - fraser: &fraser
22           branch: 'stable/{stream}'
23           gs-pathname: '/{stream}'
24           disabled: false
25       - euphrates:
26           branch: 'stable/{stream}'
27           gs-pathname: '/{stream}'
28           disabled: false
29
30 - job-template:
31     name: 'container4nfv-verify-{stream}'
32
33     disabled: '{obj:disabled}'
34
35     parameters:
36       - project-parameter:
37           project: '{project}'
38           branch: '{branch}'
39       # yamllint disable rule:line-length
40       - string:
41           name: GIT_BASE
42           default: https://gerrit.opnfv.org/gerrit/$PROJECT
43           description: "Used for overriding the GIT URL coming from Global Jenkins\
44             \ configuration in case if the stuff is done on none-LF HW."
45       # yamllint enable rule:line-length
46       - 'opnfv-build-ubuntu-defaults'
47
48     scm:
49       - git-scm-gerrit
50
51     triggers:
52       - gerrit:
53           server-name: 'gerrit.opnfv.org'
54           trigger-on:
55             - patchset-created-event:
56                 exclude-drafts: 'false'
57                 exclude-trivial-rebase: 'false'
58                 exclude-no-code-change: 'false'
59             - draft-published-event
60             - comment-added-contains-event:
61                 comment-contains-value: 'recheck'
62             - comment-added-contains-event:
63                 comment-contains-value: 'reverify'
64           projects:
65             - project-compare-type: 'ANT'
66               project-pattern: '{project}'
67               branches:
68                 - branch-compare-type: 'ANT'
69                   branch-pattern: '**/{branch}'
70               disable-strict-forbidden-file-verification: 'true'
71               forbidden-file-paths:
72                 - compare-type: ANT
73                   pattern: 'docs/**|.gitignore'
74
75     builders:
76       - shell: |
77           cd $WORKSPACE/ci
78           ./build.sh
79
80 - job-template:
81     name: 'container4nfv-daily-upload-{stream}'
82
83     disabled: '{obj:disabled}'
84
85     concurrent: false
86
87     scm:
88       - git-scm
89
90     wrappers:
91       - fix-workspace-permissions
92
93     parameters:
94       - project-parameter:
95           project: '{project}'
96           branch: '{branch}'
97       - 'opnfv-build-ubuntu-defaults'
98       - 'container4nfv-defaults':
99           gs-pathname: '{gs-pathname}'
100
101     builders:
102       - shell: |
103           cd $WORKSPACE/ci
104           ./upload.sh
105
106 - job-template:
107     name: 'container4nfv-daily-deploy-{stream}'
108
109     project-type: freestyle
110
111     disabled: '{obj:disabled}'
112
113     concurrent: false
114
115     properties:
116       - logrotate-default
117       - throttle:
118           enabled: true
119           max-per-node: 1
120           option: 'project'
121       - build-blocker:
122           use-build-blocker: true
123           blocking-jobs:
124             - 'clover-daily-deploy-.*?'
125             - 'container4nfv-daily-deploy-.*?'
126           block-level: 'NODE'
127
128     wrappers:
129       - timeout:
130           timeout: 240
131           abort: true
132       - fix-workspace-permissions
133
134     parameters:
135       - project-parameter:
136           project: '{project}'
137           branch: '{branch}'
138       # yamllint disable rule:line-length
139       - string:
140           name: GIT_BASE
141           default: https://gerrit.opnfv.org/gerrit/$PROJECT
142           description: "Used for overriding the GIT URL coming from Global Jenkins\
143             \ configuration in case if the stuff is done on none-LF HW."
144       # yamllint enable rule:line-length
145       - node:
146           name: SLAVE_NAME
147           description: 'Slave name on Jenkins'
148           allowed-slaves:
149             - huawei-virtual6
150           default-slaves:
151             - huawei-virtual6
152
153     scm:
154       - git-scm
155
156     triggers:
157       - timed: '@midnight'
158
159     builders:
160       - shell: |
161           cd $WORKSPACE/ci
162           ./deploy.sh
163
164 ###################
165 # parameter macros
166 ###################
167 - parameter:
168     name: 'container4nfv-defaults'
169     parameters:
170       - string:
171           name: GS_URL
172           default: artifacts.opnfv.org/$PROJECT{gs-pathname}
173           description: "URL to Google Storage."