|
Re: Continous Integration [message #663969 is a reply to message #663818] |
Thu, 07 April 2011 01:03 |
Brad Chen Messages: 7 Registered: April 2011 |
Junior Member |
|
|
I also happen to be using Jenkins to push projects to the staging server, and I also use the pickup/ route. What I do to make sure that bundles can get unloaded and loaded properly is that I wait a few seconds between each operation.
For example, I have the following bash snippet for unloading the bundles:
# Remove Bundles
rm -f /usr/local/virgo-tomcat-server/pickup/wab-*.war
sleep 20
rm -f /usr/local/virgo-tomcat-server/pickup/persistence-*.jar
sleep 10
rm -f /usr/local/virgo-tomcat-server/pickup/service-bundle1-*.jar
rm -f /usr/local/virgo-tomcat-server/pickup/service-bundle2-* .jar
rm -f /usr/local/virgo-tomcat-server/pickup/service-bundle3-*.jar
sleep 10
For loading, I have the following:
# Install bundles
cp $WORKSPACE/service-bundle1/target/service-bundle1- *.jar \
/usr/local/virgo-tomcat-server/pickup
cp $WORKSPACE/service-bundle2/target/service-bundle2-*.jar \
/usr/local/virgo-tomcat-server/pickup
cp $WORKSPACE/service-bundle3/target/service-bundle3-*.jar \
/usr/local/virgo-tomcat-server/pickup
sleep 10
cp $WORKSPACE/persistence/target/persistence-*.jar \
/usr/local/virgo-tomcat-server/pickup
sleep 10
cp $WORKSPACE/wab/target/wab-*.war \
/usr/local/virgo-tomcat-server/pickup
sleep 20
Then, to make sure changes work, Site Monitor Plugin is used. So far, this technique has been quite reliable for a few weeks. Though, it would be great if Virgo can have CLI commands, like Glassfish's asadmin, that handles bundle loading and unloading.
Hope this helps.
[Updated on: Thu, 07 April 2011 01:07] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03248 seconds