詹金斯与pylint导致构建失败 [英] Jenkins with pylint gives build failure

查看:146
本文介绍了詹金斯与pylint导致构建失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加了执行Python脚本的构建步骤.
在此脚本中,使用lint.Run(.. args)调用pylint来检查代码.
该脚本有效,但最终,构建失败,并显示唯一的错误消息:

I added a build step to execute a Python script.
In this script pylint is called with the lint.Run(..args) to check the code.
The script works but in the end, the build fails with the only error message:

Build step 'Execute Python script' marked build as failure

有人知道为什么会这样吗?

Someone has an idea why this happens?

推荐答案

似乎您的pylint执行退出时的状态为非零(缺少脚本,错误的选项...),也许您退出并引发了异常或sys.exit(something_else_than_zero)

it seems that your pylint execution exit with a non-zero status (missing script, bad options...), maybe you exit the script with an exception raised or a sys.exit(something_else_than_zero)

这篇关于詹金斯与pylint导致构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆