Hudson自動構築、コマンドライン呼び出しexe、Process.Start().
1857 ワード
Started by user anonymous
No emails were triggered.
[workspace] $ cmd /c call C:\tools\tomcat6\temp\hudson8584936246756672219.bat
C:\tools\tomcat6\webapps\hudson-3.0.0\tempdir\jobs\UserCenter_TA\workspace>C:\tools\tomcat6\webapps\hudson-3.0.0\WEB-INF\Test28.exe
Unhandled Exception: System.ComponentModel.Win32Exception: 。
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at Test28.Program.Main(String[] args) in E:\mt\3\3-27\Nunit\Solution1\Test28\Program.cs:line 23
C:\tools\tomcat6\webapps\hudson-3.0.0\tempdir\jobs\UserCenter_TA\workspace>exit 255
Email was triggered for: Failure
Sending email for trigger: Failure
Sending email to: [email protected]
Finished: FAILURE
====================================================
exe , , 。
Hudson exe 。
, , 。
:
Process vProcess = new Process();
vProcess.StartInfo.FileName = "nunit-console.exe";
vProcess.StartInfo.UseShellExecute = false;
vProcess.StartInfo.RedirectStandardInput = true;
vProcess.StartInfo.RedirectStandardOutput = true;
vProcess.StartInfo.RedirectStandardError = true;
vProcess.StartInfo.CreateNoWindow = false;
vProcess.StartInfo.Arguments = @"C:\Apps\UserCenterTester\CQTest\CQTest\TestUserCentre\bin\Debug\TestUserCentre.dll";
vProcess.Start();
上のvProcess.Start(); ここまで実行するとエラーが発生します.
権限の問題が疑われたが、具体的にどこの問題なのかは発見されなかった.