my-ci

My ci

Configuration summary

Debian Jessie 8 Debian Jessie 8
Bootstrap code
set -x # enable debug
set -e


# Install basic stack and tools
apt-get update
apt-get install -y -q curl
apt-get install tomcat7 -y -q

# Stop tomcat, to make sure everything starts clean
/etc/init.d/tomcat7 stop


# Get the latest build by invoking circleci
APP_VERSION=${APP_VERSION:-}

# Get the lastest war (REPLACE THE URL WITH YOUR CIRCLECI BUILD!)
curl -sS -o java-demo.war https://circle-artifacts.com/gh/manageacloud/java-demo/$APP_VERSION/artifacts/0/home/ubuntu/java-demo/target/java-demo.war
                         
rm -rf /var/lib/tomcat7/webapps/*
cp java-demo.war /var/lib/tomcat7/webapps/ROOT.war

# And restart :)
/etc/init.d/tomcat7 start



Quick Deployment
Advanced Deployment