Skip to content

Instantly share code, notes, and snippets.

@garystafford
Last active December 27, 2015 03:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garystafford/7260137 to your computer and use it in GitHub Desktop.
Save garystafford/7260137 to your computer and use it in GitHub Desktop.
jenkins-glassfish-deploy-updated Ant target from my blog post, 'Automated Deployment to GlassFish Using Jenkins CI Server and Apache Ant': http://wp.me/p1RD28-2I.
<!-- Older style. Not what is in repo on GitHub. -->
<target name="jenkins-glassfish-deploy-updated" depends="clean, default, test"
description="Clean, build, test and deploy application to GlassFish">
<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