To get CI deploy the WAR file to the environment:
Unfortunately I haven't been able to figure out why deploy to env2 fails. I given up on that and just use scripts to deploy the war:
Create the /root/rice-impex/ directory and with the following file.
/opt/asf/mvn/bin/mvn clean install -Pdb,mysql -Dimpex.dba.username=<dba-username> -Dimpex.dba.password=<dba-passwd> -Dimpex.dba.url=jdbc:mysql:
Make sure the file is executable (chmod u+w impex.sh).
One thing that didn't work is the ACUNETIX key file upload. This file is needed so that ACUNETIX can perform a security scan against the environment. The file gets uploaded before tomcat extracted the WAR file and once tomcat does this we loose the uploaded key file. To fix that put the sleep 5m statement before the scp of the ACUNETIX file. The 5 minute delay should allow the extraction of the war file.