I am trying to configure Jenkins CI for the playframework.org application, but I am having problems starting the game properly after running the automatic testing team.
All tests work fine, but it seems that my script starts at the same time play auto-testand play start --%ci. When the command is launched play start --%ci, it receives a pid and thatβs all, but it doesnβt work.
FILE: auto-test.sh, jenkins launches this using the execution shell
#!/bin/bash
cd customer-portal;
if [ -e "server.pid" ]
then
kill `cat server.pid`;
rm -rf server.pid;
fi
mysql --user=USER --password=PASS --host=HOSTNAME < ../setupdb.sql
/usr/local/lib/play/play auto-test;
wait;
if [ -e "./test-result/result.passed" ]
then
/usr/local/lib/play/play start --%ci;
exit 0;
else
/usr/local/lib/play/play test;
exit 1;
fi
Brian source
share