Windows上的Hudson错误:java.io.IOException:无法运行程序“sh
发布时间:2020-12-13 20:58:40 所属栏目:Windows 来源:网络整理
导读:我正在努力与哈德森和MSTest进行持续的整合。 当我尝试运行这个工作我得到以下错误: 1 Warnung(en) 0 FehlerVerstrichene Zeit 00:00:00.13[workspace] $ sh -xe C:WindowsTEMPhudson4419897732634199534.shThe system cannot find the file specifiedFA
我正在努力与哈德森和MSTest进行持续的整合。
当我尝试运行这个工作我得到以下错误: 1 Warnung(en) 0 Fehler Verstrichene Zeit 00:00:00.13 [workspace] $ sh -xe C:WindowsTEMPhudson4419897732634199534.sh The system cannot find the file specified FATAL: Befehlsausführung fehlgeschlagen java.io.IOException: Cannot run program "sh" (in directory "C:UsersMarkus.hudsonjobsTest1 Unit TEstworkspace"): CreateProcess error=2,Das System kann die angegebene Datei nicht finden at java.lang.ProcessBuilder.start(Unknown Source) at hudson.Proc$LocalProc.<init>(Proc.java:187) at hudson.Proc$LocalProc.<init>(Proc.java:157) at hudson.Launcher$LocalLauncher.launch(Launcher.java:649) at hudson.Launcher$ProcStarter.start(Launcher.java:266) at hudson.Launcher$ProcStarter.join(Launcher.java:273) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:79) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:54) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:34) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:646) at hudson.model.Build$RunnerImpl.build(Build.java:181) at hudson.model.Build$RunnerImpl.doRun(Build.java:136) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:434) at hudson.model.Run.run(Run.java:1390) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:40) at hudson.model.ResourceController.execute(ResourceController.java:81) at hudson.model.Executor.run(Executor.java:137) Caused by: java.io.IOException: CreateProcess error=2,Das System kann die angegebene Datei nicht finden at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 17 more Processing tests results in file results.trx FATAL: No MSTest TRX test report files were found. Configuration error? [DEBUG] Skipping watched dependency update for build: Test1 Unit TEst #5 due to result: FAILURE Finished: FAILURE 我的配置如下所示: Buildverfahren Build a Visual Studio project or solution using MSBuild MSBuild Version MS Build .NET 4 MSBuild Build File trunkUnitTestWithNHibernateUnitTestWithNHibernate.sln Command Line Arguments /p:Configuration=Release 我的命令行如下所示: "C:Program Files (x86)Microsoft Visual Studio 10.0Common7IDEMSTest.exe" /runconfig: trunkUnitTestWithNHibernateUnitTestLocalTestRun.testrunconfig /testcontainer: trunkUnitTestWithNHibernateUnitTestbinDebugUnitTest.dll /resultsfile:results.trx
如果您将Windows命令指定为“执行shell”而不是“执行Windows批处理命令”,则会发生这种情况。
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 字体 – Windows字体明确地消除字母O中的零号ZERO
- windows – 什么是域控制器,何时需要,以及如何设置它?
- 如何在Windows中为超过768M的Android模拟器分配内存?
- Windows 2003 R2 32位终端服务器上的不稳定性问题
- 2016424王启元 Exp2 后门原理与实践
- 是否可以通过ACS 2.0身份提供商从Windows Live ID获得任何其
- win10下maven3.6.1配置本地仓库及远程国内镜像仓库
- windows-server-2008-r2 – Windows服务无法自动启动?
- 拒绝服务 – 阻止IP地址,防止DoS攻击
- Microsoft Azure定价 – 什么构成出站流量?