坏气十足 发表于 2018-1-8 09:39:48

Jenkins中执行batch和Python

  Jenkins的job->build 支持Ant,maven,windows batch和Shell, 但是我们知道python,perl,ruby等脚本其实也是shell脚本,所以这里的Shell可以扩展为python,perl,ruby等。
  例如: 下面执行windows batch 和python
https://images.cnblogs.com/cnblogs_com/itech/build/jenkins17.png
  执行后的输入如下:
https://images.cnblogs.com/cnblogs_com/itech/build/jenkins18.png
  可以看到windows batch和shell脚本被保存到slave上的临时目录下,然后再执行。
  完!
页: [1]
查看完整版本: Jenkins中执行batch和Python