fix 1138 forcing cryptography version 2.5 or higher
[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
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 # NG-RO
32 make -C NG-RO clean package
33 cp NG-RO/deb_dist/python3-osm-ng-ro_*.deb deb_dist/
34
35 # VIM plugings: vmware, openstack, AWS, fos, azure, Opennebula,
36 for vim_plugin in RO-VIM-*
37 do
38 make -C $vim_plugin clean package
39 cp ${vim_plugin}/deb_dist/python3-osm-rovim*.deb deb_dist/
40 done
41
42 # SDN plugins: DynPac, Ietfl2vpn, Onosof Floodlightof
43 for sdn_plugin in RO-SDN-*
44 do
45 [[ "$sdn_plugin" == RO-SDN-tapi ]] && continue # tapi folder appears at Jenkins due to container reuse
46 [[ "$sdn_plugin" == RO-SDN-arista ]] && continue # arista folder appears at Jenkins due to container reuse
47 make -C $sdn_plugin clean package
48 cp ${sdn_plugin}/deb_dist/python3-osm-rosdn*.deb deb_dist/
49 done
50