Merge "update builder script and how-to-use-docs"
[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
13     jobs:
14         - '{project}-docker-build-push-{stream}'
15
16     stream:
17         - master:
18             branch: 'master'
19
20 ########################
21 # job templates
22 ########################
23 - job-template:
24     name: '{project}-docker-build-push-{stream}'
25
26     node: ericsson-build
27
28     disabled: false
29
30     parameters:
31         - project-parameter:
32             project: '{project}'
33         - string:
34             name: GIT_BASE
35             default: "https://gerrit.opnfv.org/gerrit/$PROJECT"
36             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
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.0"
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     logrotate:
64         daysToKeep: '{build-days-to-keep}'
65         numToKeep: '{build-num-to-keep}'
66         artifactDaysToKeep: '{build-artifact-days-to-keep}'
67         artifactNumToKeep: '{build-artifact-num-to-keep}'
68
69     builders:
70         - shell:
71             !include-raw ./opnfv-docker.sh
72
73     triggers:
74         - pollscm: "*/30 * * * *"