Jenkins Unstable 状态解释

在实际工作中,Jenkins Job会有很多状态。但实际有一种状态 Unstable有时候让人很模糊。

那我们看看官网解释吧

Unstable
The Build had some errors but they were not fatal. A Build is unstable if it was built successfully and one or more publishers report it unstable. For example if the JUnit publisher is configured and a test fails then the Build will be marked unstable.

  

 

这是什么意思呢?

直白一点:构建脚本中的命令都成功(返回错误码为0)了,也生成了XML报告,但实际报告中有错误的数据或用例

                 构建后的脚本调用了Junit 的插件,这时插件分析XML有错误,就认为这个JOB为unstable.

posted @ 2022-07-01 14:59  Believer007  阅读(1776)  评论(0编辑  收藏  举报