2015-11-30 39 views
0

我已经在Ubuntu上配置jenkins,我试图在Windows从属节点上构建Windows COM对象。詹金斯windows从不能建立COM DLL使用命令行选项

第一个问题,我有脸MSBuild.exe: -我能够安装MSBuild Plugin和詹金斯设置的MSBuild路径后,解决路径错误。

这是即使在设置MSBuild的位置

“错误MSB3411:无法加载Visual C++组件 ”给下面的错误VCBuild.exe“”

请参考下面的错误说法:

Path To MSBuild.exe: C:\Windows\Microsoft.NET\Framework64\v3.5\MSBuild.exe 
Executing the command cmd.exe /C " C:\Windows\Microsoft.NET\Framework64\v3.5\MSBuild.exe /t:Rebuild /p:Configuration=Release C:\Jenkins_Home\workspace\test\test.sln " && exit %%ERRORLEVEL%% from C:\Jenkins_Home\workspace\test 
[test] $ cmd.exe /C " C:\Windows\Microsoft.NET\Framework64\v3.5\MSBuild.exe /t:Rebuild /p:Configuration=Release C:\Jenkins_Home\workspace\test\test.sln " && exit %%ERRORLEVEL%% 
Microsoft (R) Build Engine Version 3.5.30729.5420 
[Microsoft .NET Framework, Version 2.0.50727.5485] 
Copyright (C) Microsoft Corporation 2007. All rights reserved. 

Build started 11/30/2015 3:34:35 PM. 
Project "C:\Jenkins_Home\workspace\test\test.sln" on node 0 (Rebuild target(s)). 
    Building solution configuration "Release|Win32". 
C:\Jenkins_Home\workspace\test\test.sln.cache(64,5): error MSB3411: Could not load the Visual C++ component "VCBuild.exe". If the component is not installed, either 1) install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5, or 2) install Microsoft Visual Studio 2008. 
Done Building Project "C:\Jenkins_Home\workspace\test\test.sln" (Rebuild target(s)) -- FAIL 


同样的项目,我能够建立在Windows命令行上,我无法找出詹金斯的问题。
- 任何解决此问题的建议

+0

VCBuild.exe是MSBuild.exe相当于在VS2008中创建和早些时候C++项目添加路径表演。绝对需要构建一个面向.NET 3.5的C++/CLI项目,无论VS版本如何。获得它的唯一方法是在该机器上安装VS2008。如何在启动Ubuntu的计算机上做到这一点,留给想象空间。 –

+0

感谢您的输入,我可以通过在windows从属配置中设置环境变量的路径来解决此问题 –

回答

0

我已通过在jenkins从属节点配置中设置path来解决此问题。

我已经采取了path环境变量的详细信息,通过在命令行上运行set命令,我可以建立此项目。

http://server_name:8080/computer/win_slave_name/configure和图像

Slave Configuration