Jenkins windows slave 无法使用命令行选项构建 COM dll
Jenkins windows slave not able build COM dll using command line option
我已经在 Ubuntu 上配置了 jenkins,我正在尝试在 windows 从属节点上构建 Windows COM 对象。
我面对 MSBuild.exe 的第一个问题:- 安装后我能够解决路径错误 MSBuild Plugin 并在 jenkins 中设置 MSbuild 路径。
即使在设置 MSBuild 位置后仍出现以下错误
" error MSB3411: Could not load the Visual C++ component "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 命令行上构建同一个项目,但我无法找出 jenkins 的问题。
-- 任何解决此问题的建议
我已经通过在 jenkins 从属节点配置中设置 path
解决了这个问题。
我在命令行上通过 运行 set
命令获取了 path
环境变量详细信息,我可以在其中构建此项目。
转到 http://server_name:8080/computer/win_slave_name/configure
并添加如图所示的路径
我已经在 Ubuntu 上配置了 jenkins,我正在尝试在 windows 从属节点上构建 Windows COM 对象。
我面对 MSBuild.exe 的第一个问题:- 安装后我能够解决路径错误 MSBuild Plugin 并在 jenkins 中设置 MSbuild 路径。
即使在设置 MSBuild 位置后仍出现以下错误
" error MSB3411: Could not load the Visual C++ component "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 命令行上构建同一个项目,但我无法找出 jenkins 的问题。
-- 任何解决此问题的建议
我已经通过在 jenkins 从属节点配置中设置 path
解决了这个问题。
我在命令行上通过 运行 set
命令获取了 path
环境变量详细信息,我可以在其中构建此项目。
转到 http://server_name:8080/computer/win_slave_name/configure
并添加如图所示的路径