当前位置:主页 > >

使用jenkins+maven+git发布jar包过程详解

时间:2020-07-25 12:01:01 | 栏目: | 点击:

1、新建maven项目


2、配置git仓库


3、在远程机器上执行脚本,这一步需要先配置能ssh远程机器

a、安装publish over ssh 插件


b、jenkins----配置----config system,配置远程连接主机账号密码


高级那边配置密码

c、配置Send files or execute commands over SSH after the build runs


4、构建jar包

5、前面Send files or execute commands over SSH after the build runs也可以在Pre Steps或者Post Steps这两个步骤配置


6、全部配置完保存,就可以构建了

您可能感兴趣的文章:

相关文章