title: Install Tomcat and JDK via jenkins pipeline
body: <p>I have some idea to install the Tomcat &amp; JDK via jenkins pipeline script. Using SSH agent i can able to connect my host machine. after the login i have to install tomcat then JDK.</p>
  
  <pre><code>node {
    def remote = [:]
    remote.name = 'my-machine'
    remote.host = 'my-machine-poc.com'
    remote.user = '*****
    remote.password = '******'
    remote.allowAnyHosts = true
    stage('Remote SSH') {
      sshCommand remote: remote, command: "ls -lrt"
      sshCommand remote: remote, command: "for i in {1..5}; do echo -n \"Loop \$i \"; date ; sleep 1; done"
    }
  }
  </code></pre>
  
  <p>Can you please some one help me if its possible. </p>