Merge "[Daisy] Add docker image tarball builder"
[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-{stream}'
14
15     stream:
16       - master:
17           branch: '{stream}'
18           gs-pathname: ''
19           disabled: false
20       - euphrates:
21           branch: 'stable/{stream}'
22           gs-pathname: '/{stream}'
23           disabled: false
24
25 - job-template:
26     name: 'container4nfv-verify-{stream}'
27
28     disabled: '{obj:disabled}'
29
30     parameters:
31       - project-parameter:
32           project: '{project}'
33           branch: '{branch}'
34       # yamllint disable rule:line-length
35       - string:
36           name: GIT_BASE
37           default: https://gerrit.opnfv.org/gerrit/$PROJECT
38           description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
39       # yamllint enable rule:line-length
40       - 'opnfv-build-ubuntu-defaults'
41
42     scm:
43       - git-scm-gerrit
44
45     triggers:
46       - gerrit:
47           server-name: 'gerrit.opnfv.org'
48           trigger-on:
49             - patchset-created-event:
50                 exclude-drafts: 'false'
51                 exclude-trivial-rebase: 'false'
52                 exclude-no-code-change: 'false'
53             - draft-published-event
54             - comment-added-contains-event:
55                 comment-contains-value: 'recheck'
56             - comment-added-contains-event:
57                 comment-contains-value: 'reverify'
58           projects:
59             - project-compare-type: 'ANT'
60               project-pattern: '{project}'
61               branches:
62                 - branch-compare-type: 'ANT'
63                   branch-pattern: '**/{branch}'
64               disable-strict-forbidden-file-verification: 'true'
65               forbidden-file-paths:
66                 - compare-type: ANT
67                   pattern: 'docs/**|.gitignore'
68
69     builders:
70       - shell: |
71           cd $WORKSPACE/ci
72           ./build.sh
73
74
75 - job-template:
76     name: 'container4nfv-daily-{stream}'
77
78     project-type: freestyle
79
80     disabled: '{obj:disabled}'
81
82     concurrent: false
83
84     properties:
85       - logrotate-default
86
87     parameters:
88       - project-parameter:
89           project: '{project}'
90           branch: '{branch}'
91       # yamllint disable rule:line-length
92       - string:
93           name: GIT_BASE
94           default: https://gerrit.opnfv.org/gerrit/$PROJECT
95           description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
96       # yamllint enable rule:line-length
97       - node:
98           name: SLAVE_NAME
99           description: 'Slave name on Jenkins'
100           allowed-slaves:
101             - huawei-virtual6
102           default-slaves:
103             - huawei-virtual6
104
105     scm:
106       - git-scm
107
108     triggers:
109       - timed: '@midnight'
110
111     builders:
112       - shell: |
113           cd $WORKSPACE/ci
114           ./deploy.sh