Merge "dovetail: Create jenkins jobs to deploy compass colorado and run dovetail...
[releng.git] / jjb / dovetail / dovetail-weekly-jobs.yml
1 - project:
2     name: dovetail-weekly-jobs
3     project: dovetail
4 #--------------------------------
5 # BRANCH ANCHORS
6 #--------------------------------
7     master: &master
8         stream: master
9         branch: '{stream}'
10         dovetail-branch: '{stream}'
11         gs-pathname: ''
12         docker-tag: 'latest'
13     colorado: &colorado
14         stream: colorado
15         branch: 'stable/{stream}'
16         dovetail-branch: master
17         gs-pathname: '/{stream}'
18         docker-tag: 'latest'
19
20 #--------------------------------
21 # POD, INSTALLER, AND BRANCH MAPPING
22 #--------------------------------
23 #    Installers using labels
24 #            CI PODs
25 # This section should only contain the installers
26 # that have been switched using labels for slaves
27 #--------------------------------
28     pod:
29 #        - baremetal:
30 #            slave-label: apex-baremetal
31 #            sut: apex
32 #            <<: *colorado
33         - baremetal:
34             slave-label: compass-baremetal
35             sut: compass
36             <<: *colorado
37 #        - baremetal:
38 #            slave-label: fuel-baremetal
39 #            sut: fuel
40 #            <<: *master
41 #        - baremetal:
42 #            slave-label: joid-baremetal
43 #            sut: joid
44 #            <<: *colorado
45
46     testsuite:
47         - 'debug'
48         - 'proposed_tests'
49         - 'compliance_set'
50
51     loop:
52         - 'weekly':
53             job-timeout: 60
54
55     jobs:
56         - 'dovetail-{sut}-{pod}-{testsuite}-{loop}-{stream}'
57
58 ################################
59 # job template
60 ################################
61 - job-template:
62     name: 'dovetail-{sut}-{pod}-{testsuite}-{loop}-{stream}'
63
64     disabled: '{obj:disabled}'
65
66     concurrent: false
67
68     wrappers:
69         - build-name:
70             name: '$BUILD_NUMBER Scenario: $DEPLOY_SCENARIO'
71         - timeout:
72             timeout: '{job-timeout}'
73             abort: true
74
75     parameters:
76         - project-parameter:
77             project: '{project}'
78         - gerrit-parameter:
79             branch: '{branch}'
80         - '{sut}-defaults'
81         - '{slave-label}-defaults'
82         - string:
83             name: DEPLOY_SCENARIO
84             default: 'os-nosdn-nofeature-ha'
85         - string:
86             name: DOCKER_TAG
87             default: '{docker-tag}'
88             description: 'Tag to pull dovetail docker image'
89         - string:
90             name: CI_DEBUG
91             default: 'true'
92             description: "Show debug output information"
93         - string:
94             name: TESTSUITE
95             default: '{testsuite}'
96             description: "dovetail testsuite to run"
97         - string:
98             name: DOVETAIL_REPO_DIR
99             default: "/home/opnfv/dovetail"
100             description: "Directory where the dovetail repository is cloned"
101
102     scm:
103         - git-scm
104
105     builders:
106         - description-setter:
107             description: "POD: $NODE_NAME"
108         - 'dovetail-cleanup'
109         - 'dovetail-run'
110
111     publishers:
112         - archive:
113             artifacts: 'results/**/*'
114             allow-empty: true
115             fingerprint: true
116
117 ########################
118 # builder macros
119 ########################
120 - builder:
121     name: dovetail-run-weekly
122     builders:
123         - shell:
124             !include-raw: ./dovetail-run.sh
125 - builder:
126     name: dovetail-cleanup-weekly
127     builders:
128         - shell:
129             !include-raw: ./dovetail-cleanup.sh