jenkins的Send build artifacts over SSh参数详解;

jenkins的Send build artifacts over SSh参数详解;


前言

在使用jenkins构建发布到远程主机时可以使用此插件;下面是对这个插件的参数解释:

jenkins的Send build artifacts over SSh参数详解;_第1张图片

Source files:jenkins工作空间里的源文件地址,相对地址,比如 /data/jenkins/workspace/TEST-JAVA-WMS-wmscenter-service-provider/wmscenter-service-provider/target/wmscenter.jar 直接写成/wmcenter-server-provider/target/*.jar就行;

Remove prefix:移除文件前缀,是指源文件的前缀,比如现在我们只是传输gitlab上的scmcenter-service-provider目录里的文件,那么这个目录本身是不需要在远程服务器出现,要不然就会重复出现成/data/service/scmcenter-service-provider/scmcenter-service-provider/xx.jar”那么就需要将其移除;

Remote directory:远程服务器的目录,相对目录,相对于系统设置里远程主机的Remote Directory目录;
jenkins的Send build artifacts over SSh参数详解;_第2张图片


Over;

你可能感兴趣的:(Jenkins,jenkins,ssh,运维)