Pass gs-pathname to functest-parameter
[releng.git] / jjb / joid / joid.yml
1 ########################
2 # Job configuration for joid
3 ########################
4 - project:
5
6     name: 'joid'
7
8     project: '{name}'
9
10     installer: 'joid'
11
12     sdn-controller:
13         - 'nosdn':
14             disabled: true
15         - 'odl':
16             disabled: false
17         - 'onos':
18             disabled: true
19         - 'opencontrail':
20             disabled: true
21
22     pod:
23         - 'intel-pod5'
24         - 'orange-pod2'
25
26 # only master branch is enabled at the moment to keep no of jobs sane
27     stream:
28         - master:
29             branch: '{stream}'
30             gs-pathname: ''
31 #        - brahmaputra:
32 #            branch: 'stable/{stream}'
33 #            gs-pathname: '{stream}'
34
35     jobs:
36         - 'joid-{sdn-controller}-{pod}-daily-{stream}'
37         - 'joid-deploy-{pod}-daily-{stream}'
38
39 ########################
40 # job templates
41 ########################
42 - job-template:
43     name: 'joid-{sdn-controller}-{pod}-daily-{stream}'
44
45     project-type: multijob
46
47     disabled: '{obj:disabled}'
48
49     concurrent: false
50
51     parameters:
52         - project-parameter:
53             project: '{project}'
54         - '{pod}-defaults'
55         - '{installer}-defaults'
56         - string:
57             name: SDN_CONTROLLER
58             default: '{sdn-controller}'
59         - string:
60             name: OPNFV_FEATURE
61             default: 'none'
62
63     scm:
64         - git-scm:
65             credentials-id: '{ssh-credentials}'
66             refspec: ''
67             branch: '{branch}'
68
69     builders:
70         - '{installer}-multijob-{pod}-builder':
71             pod: '{pod}'
72             stream: '{stream}'
73
74 - job-template:
75     name: 'joid-deploy-{pod}-daily-{stream}'
76
77     disabled: false
78
79     concurrent: false
80
81     wrappers:
82         - build-name:
83             name: '$BUILD_NUMBER: $INSTALLER_TYPE $SDN_CONTROLLER'
84
85     parameters:
86         - project-parameter:
87             project: '{project}'
88         - '{pod}-defaults'
89         - '{installer}-defaults'
90
91     scm:
92         - git-scm:
93             credentials-id: '{ssh-credentials}'
94             refspec: ''
95             branch: '{branch}'
96
97     builders:
98         - '{pod}-builder'
99
100 ########################
101 # multijob builder macros
102 ########################
103 # intel-pod5 is CI POD so full CI will run on it
104 # deploy, functest, yardstick
105 - builder:
106     name: joid-multijob-intel-pod5-builder
107     builders:
108         - multijob:
109             name: deploy
110             condition: SUCCESSFUL
111             projects:
112                 - name: 'joid-deploy-{pod}-daily-{stream}'
113                   current-parameters: true
114                   git-revision: true
115                   kill-phase-on: FAILURE
116         - multijob:
117             name: functest
118             condition: COMPLETED
119             projects:
120                 - name: 'functest-joid-{pod}-daily-{stream}'
121                   current-parameters: true
122                   kill-phase-on: NEVER
123 # yardstick placeholder
124 #        - multijob:
125 #            name: yardstick
126 #            condition: COMPLETED
127 #            projects:
128 #                - name: 'yardstick-joid-{pod}-daily-{stream}'
129 #                  current-parameters: true
130 #                  kill-phase-on: NEVER
131
132 # orange-pod2 is NOT a CI POD so only the selected jobs will run
133 # deploy and functest currently
134 - builder:
135     name: joid-multijob-orange-pod2-builder
136     builders:
137         - multijob:
138             name: deploy
139             condition: SUCCESSFUL
140             projects:
141                 - name: 'joid-deploy-{pod}-daily-{stream}'
142                   current-parameters: true
143                   git-revision: true
144                   kill-phase-on: FAILURE
145         - multijob:
146             name: functest
147             condition: COMPLETED
148             projects:
149                 - name: 'functest-joid-{pod}-daily-{stream}'
150                   current-parameters: true
151                   kill-phase-on: NEVER
152 ########################
153 # builder macros
154 ########################
155 - builder:
156     name: intel-pod5-builder
157     builders:
158         - shell: |
159             #!/bin/bash
160             echo "Running $INSTALLER_TYPE with controller $SDN_CONTROLLER"
161             echo "Please note that this is a quick try to see how joid deployment works"
162             echo
163             echo "Executing clean.sh"
164             cd $WORKSPACE/ci
165             ./clean.sh
166             echo
167             echo "Executing 02-maasdeploy.sh intelpod5"
168             ./02-maasdeploy.sh intelpod5
169             echo
170             echo "Executing deploy.sh -o liberty -s $SDN_CONTROLLER -t ha -l intelpod5"
171             ./deploy.sh -o liberty -s $SDN_CONTROLLER -t ha -l intelpod5
172
173 - builder:
174     name: orange-pod2-builder
175     builders:
176         - shell: |
177             #!/bin/bash
178             echo "Running $INSTALLER_TYPE with controller $SDN_CONTROLLER"
179             echo "Please note that this is WIP generic builder"
180             echo
181             echo "Executing clean.sh"
182             cd $WORKSPACE/ci
183             ./clean.sh
184         - shell:
185             !include-raw ./joid-deploy.sh