Merge "Add ONOS and ODL in dashboard see http://testresults.opnfv.org/proto/index2...
[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     disabled: false
31
32     parameters:
33         - project-parameter:
34             project: '{project}'
35         - 'ericsson-build-defaults'
36         - string:
37             name: PUSH_IMAGE
38             default: "true"
39             description: "To enable/disable pushing the image to Dockerhub."
40         - string:
41             name: BASE_VERSION
42             default: "brahmaputra.0"
43             description: "Base version to be used."
44         - string:
45             name: DOCKER_REPO_NAME
46             default: "opnfv/{project}"
47             description: "Dockerhub repo to be pushed to."
48         - string:
49             name: UPDATE_LATEST_STABLE
50             default: "false"
51             description: "This will update the latest_stable image only."
52         - string:
53             name: STABLE_TAG
54             description: "If above option is true, this is the tag to be pulled."
55
56     scm:
57         - git-scm:
58             credentials-id: '{ssh-credentials}'
59             refspec: ''
60             branch: '{branch}'
61
62     builders:
63         - shell:
64             !include-raw-escape: ./opnfv-docker.sh
65
66     triggers:
67         - pollscm:
68             cron: "*/30 * * * *"