在Jenkins中运行MsTest失败,出现CreateProcess错误= 5,访问被拒绝 [英] Running MsTest in Jenkins fails with CreateProcess error=5, Access is denied

查看:605
本文介绍了在Jenkins中运行MsTest失败,出现CreateProcess错误= 5,访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从詹金斯(Jenkins)运行MsTest作为构建步骤,但它失败并显示:

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

我使用MsTest插件.知道我在这里做错了吗?

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

推荐答案

您需要在MSTest设置中指定完整路径,包括MSTest的可执行文件,当前它正在尝试将"IDE"作为可执行文件运行!

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!

这篇关于在Jenkins中运行MsTest失败,出现CreateProcess错误= 5,访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆