stopping a runaway project
"Lucas Albers" <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
Is there a method to kill a project that won't stop; without restarting cc?
http://confluence.public.thoughtworks.org/display/CC/RunningCruiseControlFro
mUnixInit
I find this reference for a jmx reference; but cannot find a jmx interface
to whack a runaway project on the side of its head.
...get back in your cell project...back to work...whack.
#!/bin/sh
JMXURL="http://localhost:8000"
if [ -z "$1" ]; then
echo "ERROR: You have to pass a project name as argument"
echo "Usage: $0 <project> [<targets>...]"
exit 1
else
project="$1"
shift
fi
# Checkout projects:
if [ "$1" ]; then
targets=`echo $@ | sed -e 's/ /+/g'`
params="operation=buildWithTarget&value0=$targets&type0=java.lang.String"
else
params="operation=build"
fi
stat=`curl -s
"$JMXURL/invoke?objectname=CruiseControl+Project:name=$project&$params&templ
ate=identity" | perl -pe 's/>/>\n/g' \
| grep '<Operation ' | cut -d '"' -f 6`
# above was one line, broken to fit better on the wiki
# if it doesn't work as written, reappend the line starting with a pipe "|"
to the one above. -quig
echo "Invokation: $stat"
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com