jenkins安装插件Publish over SSH
系统配置中配置SSHSSH Server配置
Name :SshServerAlias Hostname :192.168.*.* Username :root Remote Directory : / Passphrase / Password : 填写密码JOB中配置Publish over SSH
构建后操作 Send build artifacts over SSH SSH Server Name:SshServerAlias Transfers Transfer Set Source files target/a.war Remove prefix target Remote directory /opt/tomcat1 Exec command /opt/tomcat1/bin/deploy.sh