Jenkins中执行batch和Python

A邱凌

关注

阅读 16

2022-07-27

 

Jenkins的job->build 支持Ant,maven,windows batch和Shell, 但是我们知道python,perl,ruby等脚本其实也是shell脚本,所以这里的Shell可以扩展为python,perl,ruby等。

 

例如: 下面执行windows batch 和python

Jenkins中执行batch和Python_python

 

Jenkins中执行batch和Python_python_02

执行后的输入如下:

Jenkins中执行batch和Python_ruby_03

 

Jenkins中执行batch和Python_perl_04

 

可以看到windows batch和shell脚本被保存到slave上的临时目录下,然后再执行。

 

完!


作者:iTech

微信公众号: cicdops

github:​​https://github.com/cicdops/cicdops​​

Jenkins中执行batch和Python_ruby_05




精彩评论(0)

0 0 举报