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