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