jenkinsSSH部署项目
时间: 2023-11-04 10:56:34 浏览: 30
JenkinsSSH部署项目的步骤如下:
1. 首先,确保你已经安装了Publish over SSH插件,并且在Jenkins的全局配置中配置了SSH服务器信息。
2. 在Jenkins中新建一个自由风格项目。
3. 在项目配置中,选择“构建环境”选项卡,在“Send files or execute commands over SSH after the build runs”部分勾选“Send files or execute commands over SSH”选项。
4. 在“SSH Server”下拉菜单中选择你配置的SSH服务器。
5. 在“Transfers”部分,可以选择将构建产物文件发送到远程服务器的特定目录。
6. 在“Exec Command”部分,填写你需要执行的远程服务器命令。
7. 保存配置并运行构建。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)