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