猪云测试plesk ssh

一、jenkins端ssh

二、pythonplesk端ssh

三、jenkins 运行pythonplesk

 
 四、附:pythonplesk
import os try: env = os.environ[“env”]except: env = “env_001” # 默认猪云1 print(‘os.environ[“env”]’, env) if env == “env_001”: # 测试设备 10.80.21.50(实验室) 串口为COM5 云台控制COM7 device_ip = “10.80.21.50” serial_com = “COM5” holder_com = “COM7″elif env == “env_002”: # 测试设备 10.80.20.161(实验室 pro) 串口为COM12 云台控制(暂无) device_ip = “10.80.20.161” serial_com = “COM12” holder_com = “COM7″elif env == “yqf”: # yeqinfang测试猪云 device_ip = “10.80.20.104” serial_com = “COM1” holder_com = “COM7″else: raise OSError(“猪云错误,请检查测试猪云!”)