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