f44f7b8aab17fcd03c4d9e69c78ca81b85aebd40
[releng.git] / jjb / functest / functest-weekly-jobs.yml
1 ###################################
2 # job configuration for functest
3 ###################################
4 - project:
5     name: functest-weekly
6
7     project: functest
8
9 #--------------------------------
10 # BRANCH ANCHORS
11 #--------------------------------
12     master: &master
13         stream: master
14         branch: '{stream}'
15         gs-pathname: ''
16         docker-tag: 'latest'
17         disabled: false
18     danube: &danube
19         stream: danube
20         branch: 'stable/{stream}'
21         gs-pathname: '/{stream}'
22         docker-tag: 'stable'
23         disabled: true
24 #--------------------------------
25 # POD, INSTALLER, AND BRANCH MAPPING
26 #--------------------------------
27 #    Installers using labels
28 #            CI PODs
29 # This section should only contain the installers
30 # that have been switched using labels for slaves
31 #--------------------------------
32     pod:
33 # fuel CI PODs
34         - baremetal:
35             slave-label: fuel-baremetal
36             installer: fuel
37             <<: *master
38         - virtual:
39             slave-label: fuel-virtual
40             installer: fuel
41             <<: *master
42         - baremetal:
43             slave-label: fuel-baremetal
44             installer: fuel
45             <<: *danube
46         - virtual:
47             slave-label: fuel-virtual
48             installer: fuel
49             <<: *danube
50 #--------------------------------
51     jobs:
52         - 'functest-{installer}-{pod}-weekly-{stream}'
53
54 ################################
55 # job template
56 ################################
57 - job-template:
58     name: 'functest-{installer}-{pod}-weekly-{stream}'
59
60     disabled: '{obj:disabled}'
61
62     concurrent: true
63
64     properties:
65         - logrotate-default
66         - throttle:
67             enabled: true
68             max-per-node: 1
69             option: 'project'
70
71     wrappers:
72         - build-name:
73             name: '$BUILD_NUMBER Suite: $FUNCTEST_SUITE_NAME Scenario: $DEPLOY_SCENARIO'
74         - timeout:
75             timeout: '400'
76             abort: true
77
78     parameters:
79         - project-parameter:
80             project: '{project}'
81             branch: '{branch}'
82         - '{installer}-defaults'
83         - '{slave-label}-defaults'
84         - string:
85             name: FUNCTEST_SUITE_NAME
86             default: 'weekly'
87             description: "Weekly suite name to run"
88         - string:
89             name: DEPLOY_SCENARIO
90             default: 'os-odl_l2-nofeature-ha'
91         - string:
92             name: DOCKER_TAG
93             default: '{docker-tag}'
94             description: 'Tag to pull docker image'
95         - string:
96             name: CLEAN_DOCKER_IMAGES
97             default: 'false'
98             description: 'Remove downloaded docker images (opnfv/functest*:*)'
99         - functest-parameter:
100             gs-pathname: '{gs-pathname}'
101
102     scm:
103         - git-scm
104
105     builders:
106         - description-setter:
107             description: "Built on $NODE_NAME"
108         - 'functest-weekly-builder'
109 ########################
110 # builder macros
111 ########################
112 - builder:
113     name: functest-weekly-builder
114     builders:
115         - shell:
116             !include-raw: ./functest-cleanup.sh
117         - shell:
118             !include-raw: ./set-functest-env.sh
119         - shell:
120             !include-raw: ./functest-loop.sh
121         - shell:
122             !include-raw: ../../utils/push-test-logs.sh
123         - shell:
124             !include-raw: ./functest-exit.sh