dovetail docker job added
[releng.git] / jjb / opnfv / opnfv-docker.yml
1 ##############################################
2 # job configuration for docker build and push
3 ##############################################
4
5 - project:
6
7     name: opnfv-docker
8
9     project:
10         - 'bottlenecks'
11         - 'cperf'
12         - 'functest'
13         - 'storperf'
14         - 'qtip'
15
16     jobs:
17         - '{project}-docker-build-push-{stream}'
18         - 'yardstick-docker-build-push-{stream}'
19         #dovetail not sync with release, an independent job
20         #only master by now, will adjust accordingly in future
21         - 'dovetail-docker-build-push-{dovetailstream}'
22
23     stream:
24         - master:
25             branch: '{stream}'
26             disabled: false
27         - colorado:
28             branch: 'stable/{stream}'
29             disabled: false
30     dovetailstream:
31         - master:
32             branch: '{dovetailstream}'
33             disabled: false
34
35 ########################
36 # job templates
37 ########################
38 - job-template:
39     name: '{project}-docker-build-push-{stream}'
40
41     disabled: '{obj:disabled}'
42
43     parameters:
44         - project-parameter:
45             project: '{project}'
46         - 'opnfv-build-ubuntu-defaults'
47         - string:
48             name: PUSH_IMAGE
49             default: "true"
50             description: "To enable/disable pushing the image to Dockerhub."
51         - string:
52             name: BASE_VERSION
53             default: "colorado.0"
54             description: "Base version to be used."
55         - string:
56             name: DOCKER_REPO_NAME
57             default: "opnfv/{project}"
58             description: "Dockerhub repo to be pushed to."
59         - string:
60             name: UPDATE_LATEST_STABLE
61             default: "false"
62             description: "This will update the latest_stable image only."
63         - string:
64             name: STABLE_TAG
65             description: "If above option is true, this is the tag to be pulled."
66
67     scm:
68         - git-scm:
69             credentials-id: '{ssh-credentials}'
70             refspec: ''
71             branch: '{branch}'
72
73     builders:
74         - shell:
75             !include-raw-escape: ./opnfv-docker.sh
76
77     triggers:
78         - pollscm:
79             cron: "*/30 * * * *"
80
81 - job-template:
82     name: 'yardstick-docker-build-push-{stream}'
83
84     disabled: '{obj:disabled}'
85
86     parameters:
87         - project-parameter:
88             project: 'yardstick'
89         - 'opnfv-build-ubuntu-defaults'
90         - string:
91             name: PUSH_IMAGE
92             default: "true"
93             description: "To enable/disable pushing the image to Dockerhub."
94         - string:
95             name: BASE_VERSION
96             default: "colorado.0"
97             description: "Base version to be used."
98         - string:
99             name: DOCKER_REPO_NAME
100             default: "opnfv/yardstick"
101             description: "Dockerhub repo to be pushed to."
102         - string:
103             name: UPDATE_LATEST_STABLE
104             default: "false"
105             description: "This will update the latest_stable image only."
106         - string:
107             name: STABLE_TAG
108             description: "If above option is true, this is the tag to be pulled."
109
110     scm:
111         - git-scm:
112             credentials-id: '{ssh-credentials}'
113             refspec: ''
114             branch: '{branch}'
115
116     builders:
117         - shell:
118             !include-raw-escape: ./opnfv-docker.sh
119
120     triggers:
121         - pollscm:
122             cron: "*/30 * * * *"
123
124 - job-template:
125     name: 'dovetail-docker-build-push-{dovetailstream}'
126
127     disabled: '{obj:disabled}'
128
129     parameters:
130         - project-parameter:
131             project: 'dovetail'
132         - 'opnfv-build-ubuntu-defaults'
133         - string:
134             name: PUSH_IMAGE
135             default: "true"
136             description: "To enable/disable pushing the image to Dockerhub."
137         #BASE_VERSION parameter is used for version control
138         #by now, only master branch is used, this parameter takes no effect
139         #once branch control settled, should be adjusted togather with
140         #opnfv-docker.sh and caculate_version.sh
141         - string:
142             name: BASE_VERSION
143             default: "1.0"
144             description: "Base version to be used."
145         - string:
146             name: DOCKER_REPO_NAME
147             default: "opnfv/dovetail"
148             description: "Dockerhub repo to be pushed to."
149         - string:
150             name: UPDATE_LATEST_STABLE
151             default: "false"
152             description: "This will update the latest_stable image only."
153         - string:
154             name: STABLE_TAG
155             description: "If above option is true, this is the tag to be pulled."
156
157     scm:
158         - git-scm:
159             credentials-id: '{ssh-credentials}'
160             refspec: ''
161             branch: '{branch}'
162
163     builders:
164         - shell:
165             !include-raw-escape: ./opnfv-docker.sh
166
167     triggers:
168         - pollscm:
169             cron: "*/30 * * * *"