Store Fuel ISO in build cache as it is built 05/8505/1
authorStefan K. Berg <stefan.k.berg@ericsson.com>
Fri, 22 Jan 2016 09:05:07 +0000 (10:05 +0100)
committerStefan Berg <sfb@consultron.com>
Fri, 29 Jan 2016 12:59:45 +0000 (13:59 +0100)
Right not the build cache is populated after a full (successful)
build. As the Fuel ISO takes some time to build, this saves quite
some time in the cases where the ISO is built successfully but a
following plugin build fails.

Change-Id: Ic6be1f5b5d00b9436eb0f82911cf28b449d0a156
Signed-off-by: Stefan K. Berg <stefan.k.berg@ericsson.com>
(cherry picked from commit c31529bb3b54a4c0db244c0929659f120f735fab)

build/Makefile

index 9465bf3..6dda79c 100644 (file)
@@ -121,6 +121,10 @@ $(ISOCACHE):
        sudo ./fuel_build_loop
        cp /tmp/fuel-main/build/artifacts/fuel*.iso .
 
+       # Attempt to store ISO in cache to speed up the next
+       # build attempt. If cache is not enabled no harm is done.
+       $(MAKE) -f Makefile put-cache
+
 .PHONY: mount-origiso umount-origiso
 mount-origiso: $(ISOCACHE)
        @echo "Mounting original ISO in $(ORIGDIR)"