continuous-enterprise-development
continuous-enterprise-development copied to clipboard
Update CI Chapter to use SCP instead of Git Deployment to OpenShift
Using a Git deployment into OpenShift will have the repo growing over time, eventually topping off the disk space quota.
Alternatively, in cases where an audit trail of previously-deployed binaries are not needed, instead do an SCP into the deployments directory:
cd $WORKSPACE/target
mv -vf devnation-site.war ROOT.war
scp ROOT.war {username@address}:app-root/dependencies/jbosseap/deployments
You can also use the rhc scp command. Here is a KB article about the different ways you can deploy war/ear files to your OpenShift gears: https://www.openshift.com/kb/kb-e1088-how-to-deploy-pre-compiled-java-applications-war-and-ear-files-onto-your-openshift-gear