1 ##############################################################################
2 # Copyright (c) 2015 Ericsson AB and others.
3 # mskalski@mirantis.com
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
13 ODL_BRANCH="juno/lithium-sr1"
14 ODL_REPO="https://github.com/stackforge/fuel-plugin-opendaylight.git"
21 # Deliberately not cleaning nailgun directory to speed up multiple builds
22 @rm -f ../release/opnfv/opendaylight*.rpm
26 @rm -f ../release/opnfv/opendaylight*.rpm
27 @mkdir -p ../release/opnfv
28 @cp opendaylight*.rpm ../release/opnfv/
31 rm -rf fuel-plugin-opendaylight
32 sudo apt-get -y install build-essential ruby-dev rubygems-integration python-pip git rpm createrepo dpkg-dev
34 sudo pip install fuel-plugin-builder
35 git clone -b ${ODL_BRANCH} ${ODL_REPO}
36 INCLUDE_DEPENDENCIES=true fpb --debug --build fuel-plugin-opendaylight/
37 mv fuel-plugin-opendaylight/opendaylight*.rpm .
38 rm -rf fuel-plugin-opendaylight