操作步骤
1.新建自由风格的脚本
2.构建触发器选中Build when job nodes start,设置如下图
3.构建选择Execute Windows batch command
输入:C:\Users\Administrator\AppData\Local\Programs\Python\Python35\python.exe C:\Users\Administrator\PycharmProjects\test2\HtmlReport.py
C:\Users\Administrator\AppData\Local\Programs\Python\Python35\python.exe python的安装路径
C:\Users\Administrator\PycharmProjects\test2\HtmlReport.py Python脚本的安装路径与文本
4.构建选择Execute system Groovy script,选择Groovy command
输入System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "")