Bugfix2 for fuel multijob example
[releng.git] / jjb / fuel / opnfv-fuel.yml
1 ########################
2 # Job configuration for fuel
3 ########################
4 - project:
5
6     name: 'opnfv-fuel'
7
8     installer: 'fuel'
9
10     controller:
11         - 'odl'
12         - 'onos'
13         - 'opencontrail'
14
15     pod:
16         - 'opnfv-jump-2'
17         - 'ericsson-pod1'
18
19     loop:
20         - 'daily'
21
22     # ignore these as these will not exist in real job
23     dummy-phase:
24         - build
25         - deploy
26         - functest
27         - yardstick
28
29     stream:
30         - master:
31             branch: 'master'
32             gs-pathname: ''
33
34     jobs:
35         - 'tmp_fuel-{controller}-{pod}-{loop}-{stream}'
36         - 'tmp_fuel-{dummy-phase}-{pod}-{loop}-{stream}'
37
38 ########################
39 # job templates
40 ########################
41 - job-template:
42     name: 'tmp_fuel-{controller}-{pod}-{loop}-{stream}'
43
44     project-type: multijob
45
46     parameters:
47         - project-parameter:
48             project: '{installer}'
49         - 'ericsson-ca-build-1-defaults'
50         - '{installer}-defaults'
51         - string:
52             name: CONTROLLER
53             default: '{controller}'
54         - string:
55             name: FEATURE
56             default: 'none'
57
58     scm:
59         - git-scm:
60             credentials-id: '{ssh-credentials}'
61             refspec: ''
62             branch: '{branch}'
63
64     builders:
65         - multijob:
66             name: build
67             condition: SUCCESSFUL
68             projects:
69                 - name: 'tmp_fuel-build-{loop}-{stream}'
70                   kill-phase-on: FAILURE
71                   current-parameters: true
72         - multijob:
73             name: deploy
74             condition: SUCCESSFUL
75             projects:
76                 - name: 'tmp_fuel-deploy-{pod}-{loop}-{stream}'
77                   kill-phase-on: FAILURE
78                   current-parameters: true
79         - multijob:
80             name: functest
81             projects:
82                 - name: 'tmp_fuel-test-{pod}-{loop}-{stream}'
83                   current-parameters: true
84         - multijob:
85             name: yardstick
86             projects:
87                 - name: 'tmp_fuel-test-{pod}-{loop}-{stream}'
88                   current-parameters: true
89
90
91 - job-template:
92     name: 'tmp_fuel-{dummy-phase}-{pod}-{loop}-{stream}'
93
94     disabled: false
95
96     concurrent: false
97
98     wrappers:
99         - build-name:
100             name: '$BUILD_NUMBER: {installer} $CONTROLLER'
101
102     parameters:
103         - project-parameter:
104             project: '{installer}'
105         - '{pod}-defaults'
106         - '{installer}-defaults'
107         - string:
108             name: CONTROLLER
109             default: 'none'
110         - string:
111             name: FEATURE
112             default: 'none'
113
114     scm:
115         - git-scm:
116             credentials-id: '{ssh-credentials}'
117             refspec: ''
118             branch: '{branch}'
119
120     builders:
121         - shell: |
122             #!/bin/bash
123             echo "Hello World from OPNFV $INSTALLER_NAME"
124             echo "Running $INSTALLER_NAME with controller $CONTROLLER"