法一:

 

配置中构建执行Windows批处理命令如下

jenkins运行Python

 

立即构建后,报错如下,提示python 不是内部或外部指令

 

jenkins运行Python

修改Windows批处理指令如下:

jenkins运行Python

再次“立即构建”则正常

jenkins运行Python

 

法二:

 

安装Python插件

jenkins运行Python

 jenkins运行Python

 

 配置时增加构建步骤:Execute Python script

jenkins运行Python

jenkins运行Python

 

相关文章:

  • 2021-05-26
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2022-03-03
  • 2021-07-27
  • 2022-01-01
  • 2021-06-23
猜你喜欢
  • 2021-04-26
  • 2021-08-31
  • 2022-02-09
  • 2022-12-23
  • 2021-06-17
  • 2020-05-13
  • 2021-06-13
相关资源
相似解决方案