How to run automate undeploy, redeployment in jboss using jenkins

Deploy on the same server where jenkins is deployed.
JBOSS_HOME/bin/jboss-cli.sh -c --user="czetsuya" --password="broodcamp.com" --commands="undeploy broodcamp.war,deploy $WORKSPACE/broodcamp/target/broodcamp.war"

Deploy on a different server.
JBOSS_HOME/bin/jboss-cli.sh controller=127.0.0.3 -c --user="czetsuya" --password="broodcamp.com" --commands="undeploy broodcamp.war,deploy $WORKSPACE/broodcamp/target/broodcamp.war"

0 nhận xét:

Đăng nhận xét