info-cvs
[Top][All Lists]
Advanced

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

CVS Trigger for CruiseControl Configuration


From: Buorn, Yoway
Subject: CVS Trigger for CruiseControl Configuration
Date: Tue, 24 May 2005 10:01:27 -0700

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/rsh-cvs-cruise.sh %s) >> /import/home/yoway/commitlog &

/import/home/yoway/bin/rsh-cvs-cruise.sh

        REMCMD="'bin/cvs-cruise.sh "${1}"'"
        echo ${REMCMD}
        eval rsh -l cruise -n db2.rd.ideas.gd-ais.com ${REMCMD}


CruiseControl Machine

/export/home/cruise/bin/cvs-cruise.sh

        MODULE=${1}

        source ~/.bash_profile
        cd checkout
        cvs co ${MODULE}
        cd ${MODULE}
        maven cruisecontrol


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 rsh-cvs-cruise.sh after the last line (the eval line) and it still blocks.  I've tried placing the '&' after "maven cruisecontrol" in cvs-cruise.sh and it still blocks.

Finally, here are my questions:

1) Does this approach make sense?
2) How can I make my script run without blocking the commit?
3) If the first two questions can't be answered, can someone point me to examples of asynchronous scripts being run from loginfo?


Yoway Buorn
Software Engineer
Imagery Systems Engineering

GENERAL DYNAMICS
Advanced Information Systems

"Cockfighting has always been my idea of a great sport two armed entrées battling to see who'll be dinner." -- P.J. O'Rourke



reply via email to

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