d14f8d92d50598bc1220ec4220cfe42a2005d0dd
[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 # RO plugin
28 make -C RO-plugin clean package
29 cp RO-plugin/deb_dist/python3-osm-ro-plugin_*.deb deb_dist/
30
31 # VIM plugings: vmware, openstack, AWS, fos, azure, Opennebula,
32 for vim_plugin in RO-VIM-*
33 do
34 make -C $vim_plugin clean package
35 cp ${vim_plugin}/deb_dist/python3-osm-rovim*.deb deb_dist/
36 done
37
38 # SDN plugins: DynPac, Ietfl2vpn, Onosof Floodlightof
39 for sdn_plugin in RO-SDN-*
40 do
41 [[ "$sdn_plugin" == RO-SDN-tapi ]] && continue # tapi folder appears at Jenkins due to container reuse
42 [[ "$sdn_plugin" == RO-SDN-arista ]] && continue # arista folder appears at Jenkins due to container reuse
43 make -C $sdn_plugin clean package
44 cp ${sdn_plugin}/deb_dist/python3-osm-rosdn*.deb deb_dist/
45 done
46