From bb958fd3822dbc9b166ab73fa15daf4433fc3505 Mon Sep 17 00:00:00 2001
From: "Stefan K. Berg" <stefan.k.berg@ericsson.com>
Date: Sun, 7 Feb 2016 00:09:55 +0100
Subject: 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 <stefan.k.berg@ericsson.com>
---
 build/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'build')

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)
-- 
cgit