2015-11-30 27 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