eec430decdb6888c76eeac8b404f81b28b30c5f5
[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         - '{pod}-defaults'
53         - '{installer}-defaults'
54         - string:
55             name: SDN_CONTROLLER
56             default: '{sdn-controller}'
57         - string:
58             name: OPNFV_FEATURE
59             default: 'none'
60
61     scm:
62         - git-scm:
63             credentials-id: '{ssh-credentials}'
64             refspec: ''
65             branch: '{branch}'
66
67     builders:
68         - '{installer}-multijob-{pod}-builder':
69             pod: '{pod}'
70             stream: '{stream}'
71
72 - job-template:
73     name: 'joid-deploy-{pod}-daily-{stream}'
74
75     disabled: false
76
77     concurrent: false
78
79     wrappers:
80         - build-name:
81             name: '$BUILD_NUMBER: $INSTALLER_TYPE $SDN_CONTROLLER'
82
83     parameters:
84         - project-parameter:
85             project: '{project}'
86         - '{pod}-defaults'
87         - '{installer}-defaults'
88
89     scm:
90         - git-scm:
91             credentials-id: '{ssh-credentials}'
92             refspec: ''
93             branch: '{branch}'
94
95     builders:
96         - '{pod}-builder'
97
98 ########################
99 # multijob builder macros
100 ########################
101 # intel-pod5 is CI POD so full CI will run on it
102 # deploy, functest, yardstick
103 - builder:
104     name: joid-multijob-intel-pod5-builder
105     builders:
106         - multijob:
107             name: deploy
108             condition: SUCCESSFUL
109             projects:
110                 - name: 'joid-deploy-{pod}-daily-{stream}'
111                   current-parameters: true
112                   git-revision: true
113                   kill-phase-on: FAILURE
114         - multijob:
115             name: functest
116             condition: COMPLETED
117             projects:
118                 - name: 'functest-joid-{pod}-daily-{stream}'
119                   current-parameters: true
120                   kill-phase-on: NEVER
121 # yardstick placeholder
122 #        - multijob:
123 #            name: yardstick
124 #            condition: COMPLETED
125 #            projects:
126 #                - name: 'yardstick-joid-{pod}-daily-{stream}'
127 #                  current-parameters: true
128 #                  kill-phase-on: NEVER
129
130 # orange-pod2 is NOT a CI POD so only the selected jobs will run
131 # deploy and functest currently
132 - builder:
133     name: joid-multijob-orange-pod2-builder
134     builders:
135         - multijob:
136             name: deploy
137             condition: SUCCESSFUL
138             projects:
139                 - name: 'joid-deploy-{pod}-daily-{stream}'
140                   current-parameters: true
141                   git-revision: true
142                   kill-phase-on: FAILURE
143         - multijob:
144             name: functest
145             condition: COMPLETED
146             projects:
147                 - name: 'functest-joid-{pod}-daily-{stream}'
148                   current-parameters: true
149                   kill-phase-on: NEVER
150 ########################
151 # builder macros
152 ########################
153 - builder:
154     name: intel-pod5-builder
155     builders:
156         - shell: |
157             #!/bin/bash
158             echo "Running $INSTALLER_TYPE with controller $SDN_CONTROLLER"
159             echo "Please note that this is a quick try to see how joid deployment works"
160             echo
161             echo "Executing clean.sh"
162             cd $WORKSPACE/ci
163             ./clean.sh
164             echo
165             echo "Executing 02-maasdeploy.sh intelpod5"
166             ./02-maasdeploy.sh intelpod5
167             echo
168             echo "Executing deploy.sh -o liberty -s $SDN_CONTROLLER -t ha -l intelpod5"
169             ./deploy.sh -o liberty -s $SDN_CONTROLLER -t ha -l intelpod5
170
171 - builder:
172     name: orange-pod2-builder
173     builders:
174         - shell: |
175             #!/bin/bash
176             echo "Running $INSTALLER_TYPE with controller $SDN_CONTROLLER"
177             echo "Please note that this is WIP generic builder"
178             echo
179             echo "Executing clean.sh"
180             cd $WORKSPACE/ci
181             ./clean.sh
182         - shell:
183             !include-raw ./joid-deploy.sh