X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=devops-stages%2Fstage-build.sh;h=aea4749d0d11e7130e9bc0f23b8bd107e7e6c707;hb=667d158c0d3ee7b4c176ad0b27ac428c81b0ddbc;hp=25de71a7f075660e43c735d38da7539370f58e13;hpb=07a88ed2e8985d3001766247baad258e264b5338;p=osm%2FRO.git diff --git a/devops-stages/stage-build.sh b/devops-stages/stage-build.sh index 25de71a7..aea4749d 100755 --- a/devops-stages/stage-build.sh +++ b/devops-stages/stage-build.sh @@ -1,4 +1,42 @@ -#!/bin/sh -make clean all BRANCH=master -#make install && \ -#make test +#!/bin/bash + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +rm -rf deb_dist/* +mkdir -p deb_dist + +# main RO module +make -C RO clean package BRANCH=master +cp RO/deb_dist/python3-osm-ro_*.deb deb_dist/ + +# RO client +make -C RO-client clean package +cp RO-client/deb_dist/python3-osm-roclient_*.deb deb_dist/ + +# VIM plugings: vmware, openstack, AWS, fos, azure, Opennebula, +for vim_plugin in RO-VIM-* +do + make -C $vim_plugin clean package + cp ${vim_plugin}/deb_dist/python3-osm-rovim*.deb deb_dist/ +done + +# SDN plugins: DynPac, Ietfl2vpn, Onosof Floodlightof +for sdn_plugin in RO-SDN-* +do + [[ "$sdn_plugin" == RO-SDN-tapi ]] && continue # tapi folder appears at Jenkins due to container reuse + [[ "$sdn_plugin" == RO-SDN-arista ]] && continue # arista folder appears at Jenkins due to container reuse + make -C $sdn_plugin clean package + cp ${sdn_plugin}/deb_dist/python3-osm-rosdn*.deb deb_dist/ +done +