windows 上jenkins slave 执行脚本提示成功,但是没有运行

控制台结果,但是脚本没有运行
Started by user admin Building remotely on test_1110 in workspace D:jenkinsworkspacepython_case1 [python_case1] $ C:Windowssystem32cmd.exe -xe C:UsersceshiAppDataLocalTemphudson3739746327451648002.sh Microsoft Windows [版本 10.0.10240] (c) 2015 Microsoft Corporation. All rights reserved. D:jenkinsworkspacepython_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: obot estpro"
pybot ceshi.txt

原文地址:https://www.cnblogs.com/51testing/p/7520135.html