f_tackerpluginbuild: Fix obsolete mitaka branch
[fuel.git] / build / f_isoroot / f_bgpvpn-pluginbuild / Makefile
index a99a426..a236b63 100644 (file)
@@ -32,13 +32,15 @@ release:.bgpvpnbuild
        @mkdir -p ../release/bgpvpn
        @cp bgpvpn*.rpm ../release/opnfv/
        cp gitinfo_bgpvpnplugin.txt $(BUILD_BASE)
-       cd $(BUILD_BASE) && mkdir -p ../deploy/templates/plugins && cp -rf $(TOP)/config/* ../deploy/templates/plugins
 
 .bgpvpnbuild:
+       # The python packages build into deb by this plugin require a newer
+       # setuptools install a newer setuptools version until the container
+       # where this is run is bumped to ubuntu 16.04.
+       # --user is used because there is already a setuptools installation
+       #  managed by apt.
+       pip install setuptools --upgrade --user
        rm -rf fuel-plugin-bgpvpn
-       sudo apt-get -y install build-essential ruby-dev rubygems-integration python-pip git rpm createrepo dpkg-dev
-       sudo gem install fpm
-       sudo pip install fuel-plugin-builder
        git clone $(BGPVPN_REPO)
        cd fuel-plugin-bgpvpn; \
        git checkout $(BGPVPN_BRANCH); \
@@ -51,6 +53,9 @@ release:.bgpvpnbuild
        $(REPOINFO) -r . > gitinfo_bgpvpnplugin.txt
        rm -rf fuel-plugin-bgpvpn
        touch .bgpvpnbuild
+       # Store artifact in cache straight away if caching is enabled
+       # (no .cacheid will be present unless this is a cached build)
+       test -f .cacheid && $(MAKE) -f Makefile put-cache || exit 0
 
 #############################################################################
 # Cache operations - only used when building through ci/build.sh
@@ -68,6 +73,7 @@ release:.bgpvpnbuild
        fi
        sha1sum Makefile >> .cachedata
        sha1sum config.mk >> .cachedata
+       echo -n $(UBUNTU_ARCH) | sha1sum | awk {'print $$1'} >> .cachedata
        cat .cachedata | $(CACHETOOL) getid > .cacheid
 
 # Clean local data related to caching - called prior to ordinary build