diff --git a/.yamato/config/LinuxBuildEnvironment-20170609.conf b/.yamato/config/LinuxBuildEnvironment-20170609.conf index ff554766d76e..8dc8a8ca0fce 100644 --- a/.yamato/config/LinuxBuildEnvironment-20170609.conf +++ b/.yamato/config/LinuxBuildEnvironment-20170609.conf @@ -1,6 +1,6 @@ [LinuxBuildEnvironment-20170609] description=Unity Linux SDK 20170609 -directory=/home/bokken/build/output/Unity-Technologies/mono/external/buildscripts/artifacts/Stevedore/linux-sdk-20170609/linux-sdk-20170609/LinuxBuildEnvironment-20170609 +directory=/home/bokken/build/output/sources/external/buildscripts/artifacts/Stevedore/linux-sdk-20170609/linux-sdk-20170609/LinuxBuildEnvironment-20170609 personality=linux users=bokken,builduser groups=sudo diff --git a/external/buildscripts/build.pl b/external/buildscripts/build.pl index d4f8a6f2a9ef..1dbf3c563266 100644 --- a/external/buildscripts/build.pl +++ b/external/buildscripts/build.pl @@ -1148,11 +1148,13 @@ if($ENV{YAMATO_PROJECT_ID}) { + print(">>> YAMATO_PROJECT_ID is set. Running on Yamato\n"); system('sudo', 'cp', "$monoroot/.yamato/config/LinuxBuildEnvironment-20170609.conf", '/etc/schroot/chroot.d/') eq 0 or die ("failed to copy conf file\n"); system('sudo', 'cat', '/etc/schroot/chroot.d/LinuxBuildEnvironment-20170609.conf') eq 0 or die ("failed to list contents on /etc/schroot/chroot.d\n"); } else { + print(">>> YAMATO_PROJECT_ID is not set. Running outside Yamato\n"); system("sed 's,^directory=.*,directory=$depsSdkFinal/$schroot,' \"$depsSdkFinal/$schroot.conf\" | sudo tee /etc/schroot/chroot.d/$schroot.conf") eq 0 or die ("failed to deploy Linux SDK\n"); } }