Running MsTest in Jenkins fails with CreateProcess error=5, Access is denied

℡╲_俬逩灬. 提交于 2019-12-06 10:36:29

问题


I am running MsTest as a Build Step from Jenkins but it fails with:

[Test] $ "c:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE" /resultsfile:TestResult.trx /noisolation "/testcontainer:C:\Program Files (x86)\Jenkins\workspace\Test\UnitTestProject1\bin\Debug\UnitTestProject1.dll"
Access is denied
FATAL: MSTest command execution failed
java.io.IOException: Cannot run program "c:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE" (in directory "C:\Program Files (x86)\Jenkins\workspace\Test"): CreateProcess error=5, Access is denied

I use the MsTest plugin. Any idea what I'm doing wrong here?


回答1:


You need to specify the full path including executable of MSTest in your MSTest setup, currently it's trying to run "IDE" as the executable!



来源:https://stackoverflow.com/questions/44071128/running-mstest-in-jenkins-fails-with-createprocess-error-5-access-is-denied

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