Our main objective is to deploy application in a web server. Web server and application server can be on local environment or remote environment. We will first deploy on a remote server. We will try to use Windows Agent for compilation and deployment to see how Agent-based architecture can be utilized. Follow these steps to deploy an application on a remote server:
First, let's start an agent on a Windows machine. Open command prompt and run the following command, given in the Manage Nodes section of the Jenkins dashboard. Change the URL accordingly:
java -jar slave.jar -jnlpUrl http://192.168.0.100:8080/computer/TestServer/slave-agent.jnlp -secret 65464e02c58c85b192883f7848ad2758408220bed2f3af715c01c9b01cb72f9b . . INFO: Trying protocol: JNLP2-connect Jul 06, 2016 8:57:16 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Connected
Our agent is now connected to the master. Let's verify the status of the agent on the master node...