Jenkins FxCop errors should fail the build

我的梦境 提交于 2019-12-13 04:08:31

问题


I have a FxCop.project file which i call using a Jenkins job

"C:\Program Files (x86)\Microsoft Fxcop 10.0\FxCopCmd.exe" /project:"D:\Testing\Source\FxCop\BrokerApplication.FxCop" /out:"D:\Testing\Source\FxCop\BrokerApplication.xml"

What i want is to fail the job if there are any FxCop errors.

Is there anyway to do this ?


回答1:


After googling for hours I found a partial answer here and decided to update it to an executable.

You can find my solution here.

How to run it:

  1. Checkout FxCopParser.exe (under release folder)
  2. Pass the FxCop result xml file to it

    "D:\Testing\Source\FxCop\FxCopParser.exe" "D:\Testing\Source\FxCop\BrokerApplication.xml"



来源:https://stackoverflow.com/questions/56195786/jenkins-fxcop-errors-should-fail-the-build

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!