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