Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
通过jenkins管道安装Tomcat和JDK_Jenkins - Fatal编程技术网

通过jenkins管道安装Tomcat和JDK

通过jenkins管道安装Tomcat和JDK,jenkins,Jenkins,我想通过jenkins管道脚本安装Tomcat和JDK。使用SSH代理,我可以连接我的主机。登录后,我必须安装tomcat,然后是JDK node { def remote = [:] remote.name = 'my-machine' remote.host = 'my-machine-poc.com' remote.user = '***** remote.password = '******' remote.allowAnyHosts = true stage

我想通过jenkins管道脚本安装Tomcat和JDK。使用SSH代理,我可以连接我的主机。登录后,我必须安装tomcat,然后是JDK

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"
  }
}

如果可能的话,你能找个人帮我一下吗

如果您使用的是debian-maybe:sudo-apt-get-install-tomcat

如果您使用的是debian-maybe:sudo-apt-get-install-tomcat