Re: " Sourcing" linux environment file in CC

Zach La Celle <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Zach La Celle <lacelle <at> roboticresearch.com> writes:

> 
> There are separate environments for each project.  So solution one is 
> unfortunately not viable.
> 
> I have used the solution where I put it all in one bash script and 
> execute, but none of the build output is published to the web dashboard, 
> making the build kind of pointless (if it's not published, then the 
> developer doesn't know what exactly failed!).
> 
> Previously I've wrapped "make" in an Ant script, as an exec task, and 
> that seemed to publish the results correctly.  However, running the 
> "source" inside a bash script doesn't preserve the variables after the 
> script exits.  I need something similar to a single shell, where after 
> running the source command, the exported variables remain.
> 
> On 06/03/2010 11:39 AM, Lincoln Peters wrote:
> > On Thu, Jun 3, 2010 at 6:23 AM, zachlac<lacelle <at> roboticresearch.com> 
wrote:
> >    
> >> For our builds, we pick and choose the different code
> >> subdirectories needed for a specific project by using
> >> "environment" files; we call "source<filename>" to set
> >> up lots of different variables, etc.  We then call
> >> "make" to build the project.
> >>
> >> How can do something similar in CruiseControl: "source"
> >> a tcl script to get the variables from it, and then
> >> run "make" with those variables preserved?
> >>      


EDIT: Let me simplify what exactly I hope I can get cruisecontrol to do.  
1) I need it to read a "source-able" (as in "source <filename>" in Linux) file,
which I could do in a script
2) I need the variables changed by the script to remain in scope for another
exec/ant builder call
3) I would like to be able to see errors/warnings in the web dashboard, not just
a script return value.

Currently I can do the first two things by putting them all in one script. 
However, a bash script's gcc output isn't parsed properly by CruiseControl.

Any ideas?


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.