[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CVS Trigger for CruiseControl Configuration

From: Todd Denniston
Subject: Re: CVS Trigger for CruiseControl Configuration
Date: Tue, 24 May 2005 13:13:12 -0500

> "Buorn, Yoway" wrote:
> I am attempting to use a CVS trigger (loginfo) to asyncrhonously execute a
> script that runs "maven cruisecontrol" to reconfigure CruiseControl on
> each commit. The intent is to capture new CVS modules and automatically
> configure them for continuous integration. (even though I only want this
> upon adding of a module, I decided reconfiguration on every commit is not
> too bad of a side effect)
> I have a build machine (running CruiseControl) and a CVS machine.  There
> is an entry in loginfo to execute a script on the CVS machine that uses
> rsh to execute commands on the build machine (to reconfigure
> CruiseControl).  This is what it looks like:
> CVS Machine
> /export/CVS/CVSROOT/loginfo
>         DEFAULT \
>            (/import/home/yoway/bin/ %s) >> \
>             /import/home/yoway/commitlog &
> /import/home/yoway/bin/
>         REMCMD="'bin/ "${1}"'"
>         echo ${REMCMD}
>         eval rsh -l cruise -n ${REMCMD}
> So my problem is this does not run asynchronously.  No matter where I put
> the '&', the commit always blocks until maven is done.  I've tried placing
> the '&' in after the last line (the eval line) and it
> still blocks.  I've tried placing the '&' after "maven cruisecontrol" in
> and it still blocks.
1) any reason you use 'eval' instead of just calling the command? 
2) have you tried putting the '&' at the end of the rsh? i.e.,
replace `eval rsh -l cruise -n ${REMCMD}`
with `rsh -l cruise -n ${REMCMD} &`
which should put the rsh in the background.
3) have you noted the BUGS section of the rsh man page (at least its there
on Fedora Core 2)?

This is not intended to be direction to a gov contractor to do anything,
just a listing of information which _may_ answer the question which was
asked, and questions that may lead to answers for the question which was
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane) 
Harnessing the Power of Technology for the Warfighter
The opinions expressed here are not sanctioned by and do not necessarily 
represent those of my employer.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]