Merge "Enable test projects' docker image builds for stable/brahmaputra branch"
[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         - 'functest'
11         - 'yardstick'
12         - 'storperf'
13         - 'qtip'
14
15     jobs:
16         - '{project}-docker-build-push-{stream}'
17
18     stream:
19         - master:
20             branch: '{stream}'
21         - brahmaputra:
22             branch: 'stable/{stream}'
23
24 ########################
25 # job templates
26 ########################
27 - job-template:
28     name: '{project}-docker-build-push-{stream}'
29
30     node: ericsson-build
31
32     disabled: false
33
34     parameters:
35         - project-parameter:
36             project: '{project}'
37         - string:
38             name: GIT_BASE
39             default: "https://gerrit.opnfv.org/gerrit/$PROJECT"
40             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
41         - string:
42             name: PUSH_IMAGE
43             default: "true"
44             description: "To enable/disable pushing the image to Dockerhub."
45         - string:
46             name: BASE_VERSION
47             default: "brahmaputra.0"
48             description: "Base version to be used."
49         - string:
50             name: DOCKER_REPO_NAME
51             default: "opnfv/{project}"
52             description: "Dockerhub repo to be pushed to."
53         - string:
54             name: UPDATE_LATEST_STABLE
55             default: "false"
56             description: "This will update the latest_stable image only."
57         - string:
58             name: STABLE_TAG
59             description: "If above option is true, this is the tag to be pulled."
60
61     scm:
62         - git-scm:
63             credentials-id: '{ssh-credentials}'
64             refspec: ''
65             branch: '{branch}'
66
67     builders:
68         - shell:
69             !include-raw ./opnfv-docker.sh
70
71     triggers:
72         - pollscm: "*/30 * * * *"