Merge "Shorten and remove the word deploy from pod names"
[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
14     jobs:
15         - '{project}-docker-build-push-{stream}'
16
17     stream:
18         - master:
19             branch: 'master'
20
21 ########################
22 # job templates
23 ########################
24 - job-template:
25     name: '{project}-docker-build-push-{stream}'
26
27     node: ericsson-build
28
29     disabled: false
30
31     parameters:
32         - project-parameter:
33             project: '{project}'
34         - string:
35             name: GIT_BASE
36             default: "https://gerrit.opnfv.org/gerrit/$PROJECT"
37             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
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.0"
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 ./opnfv-docker.sh
67
68     triggers:
69         - pollscm: "*/30 * * * *"