Revert "container4nfv: Disable jobs until the project stops changing docker version"
[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
113     wrappers:
114       - fix-workspace-permissions
115
116     parameters:
117       - project-parameter:
118           project: '{project}'
119           branch: '{branch}'
120       # yamllint disable rule:line-length
121       - string:
122           name: GIT_BASE
123           default: https://gerrit.opnfv.org/gerrit/$PROJECT
124           description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
125       # yamllint enable rule:line-length
126       - node:
127           name: SLAVE_NAME
128           description: 'Slave name on Jenkins'
129           allowed-slaves:
130             - huawei-virtual6
131           default-slaves:
132             - huawei-virtual6
133
134     scm:
135       - git-scm
136
137     triggers:
138       - timed: '@midnight'
139
140     builders:
141       - shell: |
142           cd $WORKSPACE/ci
143           ./deploy.sh
144
145 ###################
146 # parameter macros
147 ###################
148 - parameter:
149     name: 'container4nfv-defaults'
150     parameters:
151       - string:
152           name: GS_URL
153           default: artifacts.opnfv.org/$PROJECT{gs-pathname}
154           description: "URL to Google Storage."