Fix 975 SDN-net error when plugin cannot be loaded
[osm/RO.git] / devops-stages / stage-build.sh
1 #!/bin/bash
2
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12 # implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 rm -rf deb_dist/*
17 mkdir -p deb_dist
18
19 # main RO module
20 make -C RO clean package BRANCH=master
21 cp RO/deb_dist/python3-osm-ro_*.deb deb_dist/
22
23 # RO client
24 make -C RO-client clean package
25 cp RO-client/deb_dist/python3-osm-roclient_*.deb deb_dist/
26
27 # VIM plugings: vmware openstack AWS fos azure Opennebula
28 for vim_plugin in RO-VIM-*
29 do
30 make -C $vim_plugin clean package
31 cp ${vim_plugin}/deb_dist/python3-osm-rovim*.deb deb_dist/
32 done
33
34 # SDN plugins
35
36 # SDN plugins: Dynpack Tapi Onosof Floodlightof
37 for sdn_plugin in RO-SDN-*
38 do
39 make -C $sdn_plugin clean package
40 cp ${sdn_plugin}/deb_dist/python3-osm-rosdn*.deb deb_dist/
41 done
42