Merge "Add Functest execution after APEX deployment"
[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     project-type: freestyle
27
28     node: ericsson-build
29
30     disabled: false
31
32     parameters:
33         - project-parameter:
34             project: '{project}'
35         - string:
36             name: GIT_BASE
37             default: "https://gerrit.opnfv.org/gerrit/$PROJECT"
38             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
39         - string:
40             name: PUSH_IMAGE
41             default: "true"
42             description: "To enable/disable pushing the image to Dockerhub."
43         - string:
44             name: BASE_VERSION
45             default: "brahmaputra.0"
46             description: "Base version to be used."
47         - string:
48             name: DOCKER_REPO_NAME
49             default: "opnfv/{project}"
50             description: "Dockerhub repo to be pushed to."
51         - string:
52             name: UPDATE_LATEST_STABLE
53             default: "false"
54             description: "This will update the latest_stable image only."
55         - string:
56             name: STABLE_TAG
57             description: "If above option is true, this is the tag to be pulled."
58
59     scm:
60         - git-scm:
61             credentials-id: '{ssh-credentials}'
62             refspec: ''
63             branch: '{branch}'
64
65     logrotate:
66         daysToKeep: '{build-days-to-keep}'
67         numToKeep: '{build-num-to-keep}'
68         artifactDaysToKeep: '{build-artifact-days-to-keep}'
69         artifactNumToKeep: '{build-artifact-num-to-keep}'
70
71     builders:
72         - shell:
73             !include-raw ./opnfv-docker.sh
74
75     triggers:
76         - pollscm: "*/30 * * * *"