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.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章