How to mark build as unstable when warning trend has arisen?

前端 未结 1 700
逝去的感伤
逝去的感伤 2021-01-18 14:38

So we use Jenkins in conjunction with MS Build to build our projects. We also have a warnings plugin and a large number of warnings in our projects. I am trying to fight wit

相关标签:
1条回答
  • 2021-01-18 14:47

    The warnings plugin does have some capability to do some of this. Under the "Advanced..." settings, there are two configuration options to look at:

    • Health Thresholds - "Configure the thresholds for build health"
    • Status Thresholds - "If the number of total warnings is greater than one of these thresholds then a build is considered as unstable or failed."

    If you then check the "Compute new warnings" checkbox, you will get an option to set the status thresholds based on new warnings.

    0 讨论(0)
提交回复
热议问题