通过jenkins管道安装Tomcat和JDK
我想通过jenkins管道脚本安装Tomcat和JDK。使用SSH代理,我可以连接我的主机。登录后,我必须安装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
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