<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>I faced a similar problem. To work around it, I have a batch
file (see below) to run consecutively all the steps that need to
share the environment.</p>
<p>It's not perfect. In particular, I've had trouble getting useful
stdout/stderr logs and error code back to the builder when one of
the steps fails. <br>
</p>
<p>I'd appreciate your sharing back any improvements you make on
this.</p>
<p><font face="Courier New, Courier, monospace"><br>
</font></p>
<p><font face="Courier New, Courier, monospace">echo off<br>
setlocal<br>
<br>
set THREAD_CFG=%~1<br>
if /i "%~1"=="" set THREAD_CFG=single<br>
set LIB_LINKING=%~2<br>
if /i "%~2"=="" set LIB_LINKING=shared<br>
set CMAKE_BUILD_TYPE=%~3<br>
if /i "%~3"=="" set CMAKE_BUILD_TYPE=Release<br>
set PROJ_FOLDER=%~4<br>
if /i "%~4"=="" set PROJ_FOLDER=Main_Project<br>
<br>
:: For the log, show the command line we're about to run<br>
set a_cmd=cd ..\build_out<br>
echo %a_cmd%<br>
%a_cmd%<br>
<br>
:: For the log, show the command line we're about to run<br>
set a_cmd=set path=C:\Program Files
(x86)\CMake\bin;G:\TDM-GCC-64\bin;%path%<br>
:: set a_cmd=set path=C:\Program Files (x86)\CMake\bin;%path%<br>
echo %a_cmd%<br>
%a_cmd%<br>
<br>
echo %path%<br>
:: set path=G:\TDM-GCC-64\bin;%path% -- The TDM builds cause a
runtime error. Disable for now.<br>
:: set
path=G:\mingw-w64\x86_64-5.4.0-posix-seh-rt_v5-rev0\mingw64\bin;%path%
-- Should not be necessary, as it's on the buildbot
BuilderConfig PATH environment variable.<br>
<br>
:: For the log, show the command line we're about to run<br>
set a_cmd=cmake -G "MinGW Makefiles"
-DCMAKE_Threading="%THREAD_CFG%" -DLIB_LINKING="%LIB_LINKING%"
-DCMAKE_BUILD_TYPE="%CMAKE_BUILD_TYPE%"
..\build\Projects\cmake\%PROJ_FOLDER%<br>
echo %a_cmd%<br>
%a_cmd%<br>
<br>
:: For the log, show the command line we're about to run<br>
set a_cmd=mingw32-make<br>
echo %a_cmd%<br>
%a_cmd%<br>
<br>
endlocal<br>
</font><br>
<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 5/7/2019 1:22 PM, Trung Tran wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAAmkJuq05AxtX7AbS2aRYtX5LQaS77J4Fiji7iWM5PJoAYFUrw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>I current doing a simple build steps that include <br>
</div>
<div>"Setup enviroments" (running vcvarsall.bat")</div>
<div>"Run Cmake"</div>
<div>"Run MsBuild"</div>
<div>I notice that all steps are not sharing any state between
them. This is the issue for my setup environment steps because
I need that for both sub sequence step. <br>
</div>
<div>What is the right way to do this?</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@buildbot.net">users@buildbot.net</a>
<a class="moz-txt-link-freetext" href="https://lists.buildbot.net/mailman/listinfo/users">https://lists.buildbot.net/mailman/listinfo/users</a></pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Greg Bullock
NorthWest Research Associates
301 Webster St.
Monterey, CA 93940
(831) 582-4907
<a class="moz-txt-link-abbreviated" href="mailto:greg@nwra.com">greg@nwra.com</a></pre>
</body>
</html>