jenkins 部署项目到windows系统

1、jenkins中设置SSH Server 2、windows系统中安装PowerShellServer.exe,百度网盘下载:链接:https:pan.baidus

1、jenkins中设置SSH Server

2、windows系统中安装PowerShellServer.exe,百度网盘下载:链接:https://pan.baidu/s/1CedPuncOgjngtB6HztYxlQ 
提取码:dqla

3、安装后,设置PowerShellServer的编码

4、jenkins创建maven任务并配置

5、buss.bat脚本配置(简单配置,没备份)

@echo off
taskkill /f /im buss.exe
ping 127.0.0.1 -n 5

echo 拷贝
copy C:\"Program Files"\nsoftware\"PowerShell Server 2016"\sftproot\dev\buss.jar E:\deploy\jar                                                                                       
cd E:\deploy\jar

echo 启动实例
buss.exe -Xms512m -Xmx1024m -jar -Dfile.encoding=UTF-8  buss.jar

6、buss.exe文件:将java.exe拷贝到E:\deploy\jar目录下,并改名为buss.exe

 

发布者:admin,转转请注明出处:http://www.yc00.com/web/1737886294a3992813.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信