Last active
October 14, 2015 12:54
-
-
Save vanduc1102/df516aab83950528a276 to your computer and use it in GitHub Desktop.
Jboss auto deployement
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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