Skip to content

Instantly share code, notes, and snippets.

@sterym
Created July 16, 2013 17:44
Show Gist options
  • Save sterym/6010935 to your computer and use it in GitHub Desktop.
Save sterym/6010935 to your computer and use it in GitHub Desktop.
Deploy rest api for collection service
echo "current dir"
pwd
echo "files in current dir"
ls
echo "files in target dir"
cd target
ls
echo "cloning openhift repo"
git clone ssh://51e584315973ca1b0600002f@rest-collections.rhcloud.com/~/git/rest.git/
cd rest/deployments
echo "ls deployments"
ls
rm ROOT.war
cp ../../collection-rs-1.0.0-SNAPSHOT.war ROOT.war
ls
cd ../
pwd
git status
git commit -a -m "auto deploy from cloudbees"
git push origin master
#git status
#git remote add openshift -f ssh://519c83c87885463984d5fdff4d323cf9@registrationsservice-cremersstijn.rhcloud.com/~/git/registrationsservice.git/
#git push -openshift HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment