1、先参数化构建,如:
2、每天凌晨1点执行自动化脚本
3、在构建模块使用Windows batch command执行,用参数化构建(choice)的参数来构建要执行的参数,如图
PS:这里要注意if "%auto%" == "test1" ( ###这里的==前后要有空格,不然会报错
if "%auto%" == "generalpay" (
call python E:\YuFuShop_Auto\generalpay.py
exit 0
)else if "%auto%" == "generalnotpay" (
call python E:\YuFuShop_Auto\generalnotpay.py
exit 0
)else if "%auto%" == "uperiorpay" (
call python E:\YuFuShop_Auto\upe