Skip to content

Instantly share code, notes, and snippets.

@vanduc1102
Last active October 14, 2015 12:54
Show Gist options
  • Save vanduc1102/df516aab83950528a276 to your computer and use it in GitHub Desktop.
Save vanduc1102/df516aab83950528a276 to your computer and use it in GitHub Desktop.
Jboss auto deployement
// call jboss-cli
jboss-cli.sh --connect controller=vntils11:9991 --command="deploy /root/.hudson/jobs/Xframework-SaaS-EJB/workspace/xframework-saas-ear/target/xframework-saas-ear-1.0.0.0-SNAPSHOT.ear"
//relax
sleep 60
// copy to deployements
cp xframework-saas-ear/target/*ear /opt/jboss-as-7.1.1.Final/standalone/deployments/
//Windows
rem this is comment
call mvn clean install -Dmaven.test.skip=true
SET JBOSS_PATH= C:\jboss-as-7.1.1.Final\standalone\deployments
SET PROJECT_PATH=xframework-saas-ear\target
for /R %%G IN (%PROJECT_PATH%\*.ear) DO xcopy /Y "%%G" %JBOSS_PATH%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment