windows 上jenkins slave 执行脚本提示成功,但是没有运行
控制台结果,但是脚本没有运行
Started by user admin Building remotely on test_1110 in workspace D:\jenkins\workspace\python_case1 [python_case1] $ C:\Windows\system32\cmd.exe -xe C:\Users\ceshi\AppData\Local\Temp\hudson3739746327451648002.sh Microsoft Windows [版本 10.0.10240] (c) 2015 Microsoft Corporation. All rights reserved. D:\jenkins\workspace\python_case1>Finished: SUCCESS
排查之后终于找到原因,结果是job构建时执行命令构建时执行命令的窗口选择成了linux的
windows下应该选择:execuate windows batch command
命令如下:
cd /d D:\Python27
python baidu.py
或者
D:
cd "D:\\Python27"
python baidu.py
http://www.jianshu.com/p/26d20148ab9a 安装插件
执行robotframework脚本命令:
windows下应该选择:execuate windows batch command
d:
cd "d:\robot\testpro"
pybot ceshi.txt
javascript
posted on 2017-09-14 13:28 sunny_2016 阅读(694) 评论(0) 收藏 举报