From: Stefan K. Berg Date: Sat, 6 Feb 2016 23:09:55 +0000 (+0100) Subject: We need to preserve environment for sudo build X-Git-Tag: colorado.1.rc1~220 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=bb958fd3822dbc9b166ab73fa15daf4433fc3505;p=fuel.git We need to preserve environment for sudo build In order to preserve environment variables (esp commit ids) for the Fuel build, the environment needs to be kept when the build loop is run. Change-Id: Ia044ea92853147280db0686ac857beda52ab50dc Signed-off-by: Stefan K. Berg --- diff --git a/build/Makefile b/build/Makefile index bc6a9418c..01f6e414a 100644 --- a/build/Makefile +++ b/build/Makefile @@ -123,7 +123,7 @@ $(ISOCACHE): cd /tmp/fuel-main && make repos $(REPOINFO) -r /tmp/fuel-main > gitinfo_fuel.txt # Repeat build up to ten times - sudo ./fuel_build_loop + sudo -E ./fuel_build_loop cp /tmp/fuel-main/build/artifacts/fuel*.iso . # Store artifact in cache straight away if caching is enabled # (no .cacheid will be present unless this is a cached build)