HomePage: Fully integrated standalone wiki and acceptance testing framework
Create a SVN project and add the following contents to the Jenkins WORKSPACE:
lib/fitnesse-standalone.jar
tests
logs
Configure the Jenkins Job:
Add SVN checkout for the project above
Create a Choice property called ACTION with entries for START and STOP
Add a build script and paste the following script:
#!/bin/sh
FITNESSE_PORT=9099
case "$ACTION" in
'START' )
# Launch Fitnesse as daemon Java process.
# Jenkins gives and error if already started.
# TODO: Need to grep a 'ps -ef' command for the FITNESSE_SERVER string
nohup java -Xrs -DFITNESSE_SERVER -jar ${WORKSPACE}/lib/fitnesse-standalone.jar -p $FITNESSE_PORT -d ${WORKSPACE}/tests -l ${WORKSPACE}/logs </dev/null 2>&1 | tee ${WORKSPACE}/logfile.log &
;;
'STOP' )
java -cp ${WORKSPACE}/lib/fitnesse-standalone.jar fitnesse.Shutdown -p $FITNESSE_PORT
;;
esac