I am trying to automatically deploy our Java EE application from our build server (Jenkins) to a remote Glassfish server via the command line. Right now I'm using asadmin for this and it works great, but for this option I need to install Glassfish on the build server, which I would like to avoid because I don't need it. The build server actually only works with builds and deployments, so I want the server to be as clean as possible.
I can’t find any download that installs only the asadmin tools, as well as my attempt to manually copy only the necessary files, as there are some dependencies on certain * .jars that I don’t know, so it always fails if I don’t copy the whole installation folder for glass fish on the assembly server.
So my question is: Does anyone know how to install only asadmin tools without installing the entire Glassfish server? As an alternative, I would also be happy to use any other command line tools if they allow me to deploy Glassfish to a remote instance using a secure connection.
source share