title: How can I have Jenkins run a script on another server and watch over the result?
body: <p>I want Jenkins to be able to kick off a deployment process on another server, but I want a process on that server to actually do the deplyoment process (for security reasons e.g. rather than having a user on the jenkins server ssh to the remote server and perform the deployment)  and report the status of the deployment back to Jenkins. </p>
  
  <p>It looks like the way to do this is to leverage Jenkins ability to have slave processes which can run on other servers, executing scripts and reporting console output, status, etc back to the master server. </p>
  
  <p>So the sequence would be:</p>
  
  <p>jenkins (master) </p>
  
  <p><strong>1.</strong> build -></p>
  
  <p><strong>2.</strong> create artifacts -></p>
  
  <p><strong>3.</strong> kick off deployment (using ssh kick off of slave job)jenkins (slave)</p>
  
  <p><strong>4.</strong> perform deployment -></p>
  
  <p><strong>5.</strong> report status back to master jenkins server</p>
  
  <p>Is this the appropriate way to achieve what I want to do?</p>