weixin_42008006
2021-09-06 11:42
采纳率: 0%
浏览 56

在Jenkins构建的时候报了一个问题

img

D:\pychram-Workspace\learnpytest>python main.py
File "D:\python\lib\site.py", line 177
file=sys.stderr)
^
SyntaxError: invalid syntax

D:\pychram-Workspace\learnpytest>exit 1
Build step 'Execute Windows batch command' marked build as failure
[learnpytest] $ D:\allure-2.13.6\bin\allure.bat generate D:\pychram-Workspace\learnpytest\outputs\allure -c -o D:\pychram-Workspace\learnpytest\allure-report
Report successfully generated to D:\pychram-Workspace\learnpytest\allure-report
Allure report was successfully generated.
Creating artifact for the build.
Artifact was added to the build.
Finished: FAILURE

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • 枫月—— 2021-09-06 11:49

    构建命令最后一行加上
    exit 0

    1 打赏 评论
  • 王大师王文峰 2021-09-06 13:19

    清空缓存看看

    打赏 评论

相关推荐 更多相似问题