如何使用Python作为Jenkins或其他CI的脚本语言?
在Jenkins CI中定义任务时,它是用Shell编写的。但是,我一直在使用Python作为脚本语言(有些依赖性)代替Shell。因此,我想知道如何在詹金斯(Jenkins)运行它?
一个天真的想法是,将所有依赖性的python包装到詹金斯CI中运行的码头图像中。但是,这听起来并不方便,因为我们将不得不为jenkins中使用的每个 docker映像添加python(和依赖项),这将是很多。
感谢您的建议!
When defining tasks in Jenkins CI, it is written in Shell. However, I have been using Python as the scripting language (with some dependencies such as typer) in place of Shell. Therefore, I wonder how to run it in Jenkins?
A naive thought is to package a Python with all its dependencies into docker images that are to be run in Jenkins CI. However, that does not sound convenient, because we will have to add Python (and dependencies) for each and every docker image to be used in Jenkins which would be a lot.
Thanks for any suggestions!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论