4250eef649daccd7f23c5a8d059b7a2cb2f18ba6
[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
20     stream:
21         - master:
22             branch: '{stream}'
23             disabled: false
24         - colorado:
25             branch: 'stable/{stream}'
26             disabled: false
27
28 ########################
29 # job templates
30 ########################
31 - job-template:
32     name: '{project}-docker-build-push-{stream}'
33
34     disabled: '{obj:disabled}'
35
36     parameters:
37         - project-parameter:
38             project: '{project}'
39         - 'opnfv-build-ubuntu-defaults'
40         - string:
41             name: PUSH_IMAGE
42             default: "true"
43             description: "To enable/disable pushing the image to Dockerhub."
44         - string:
45             name: BASE_VERSION
46             default: "colorado.0"
47             description: "Base version to be used."
48         - string:
49             name: DOCKER_REPO_NAME
50             default: "opnfv/{project}"
51             description: "Dockerhub repo to be pushed to."
52         - string:
53             name: UPDATE_LATEST_STABLE
54             default: "false"
55             description: "This will update the latest_stable image only."
56         - string:
57             name: STABLE_TAG
58             description: "If above option is true, this is the tag to be pulled."
59
60     scm:
61         - git-scm:
62             credentials-id: '{ssh-credentials}'
63             refspec: ''
64             branch: '{branch}'
65
66     builders:
67         - shell:
68             !include-raw-escape: ./opnfv-docker.sh
69
70     triggers:
71         - pollscm:
72             cron: "*/30 * * * *"
73
74 - job-template:
75     name: 'yardstick-docker-build-push-{stream}'
76
77     disabled: '{obj:disabled}'
78
79     parameters:
80         - project-parameter:
81             project: 'yardstick'
82         - 'opnfv-build-ubuntu-defaults'
83         - string:
84             name: PUSH_IMAGE
85             default: "true"
86             description: "To enable/disable pushing the image to Dockerhub."
87         - string:
88             name: BASE_VERSION
89             default: "colorado.0"
90             description: "Base version to be used."
91         - string:
92             name: DOCKER_REPO_NAME
93             default: "opnfv/yardstick"
94             description: "Dockerhub repo to be pushed to."
95         - string:
96             name: UPDATE_LATEST_STABLE
97             default: "false"
98             description: "This will update the latest_stable image only."
99         - string:
100             name: STABLE_TAG
101             description: "If above option is true, this is the tag to be pulled."
102
103     scm:
104         - git-scm:
105             credentials-id: '{ssh-credentials}'
106             refspec: ''
107             branch: '{branch}'
108
109     builders:
110         - shell:
111             !include-raw-escape: ./opnfv-docker.sh
112
113     triggers:
114         - pollscm:
115             cron: "*/30 * * * *"