0
点赞
收藏
分享

微信扫一扫

Jenkins中执行batch和Python

A邱凌 2022-07-27 阅读 16

 

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 条评论