[Jenkins]怎样在Jenkins上面启动服务器上的批处理脚本

New Item

 

在Build --> Execute Windows batch command --> 里面填写:

 

schtasks /run /tn Start_Hub_szotqa201201 /s szotqa201201/u szdomain1\doautotester /p mimaemima

 

Start_Hub_szotqa201201 : 远程机器szotqa201201上的计划任务名称

szotqa201201 : 远程机器名称

msdomain1\doautotester : 域名\登录用户名

mimaemima : 登录密码

 

posted on 2014-08-20 17:40  张缤分  阅读(566)  评论(0编辑  收藏  举报

导航