jenkins-glassfish-deploy Ant target from my blog post, 'Automated Deployment to GlassFish Using Jenkins CI Server and Apache Ant': http://wp.me/p1RD28-2I.
This file contains 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
<!-- Older style. Not what is in repo on GitHub. --> | |
<target name="jenkins-glassfish-deploy" | |
description="Clean, build, test and deploy application to GlassFish"> | |
<antcall target="clean"> | |
<antcall target="default"> | |
<antcall target="test"> | |
<exec failonerror="true" executable="cmd" description="Deploy to GlassFish"> | |
<arg value="/c" /> | |
<arg value="asadmin --echo=true --host=localhost --port=4848 --user=admin | |
--passwordfile=pwdfile_domain1 --secure=false | |
deploy --force=true --name=HelloGlassFish --contextroot=/HelloGlassFish dist\HelloGlassFish.war" /> | |
</exec> | |
</target> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment