建立使用MSBuild的詹金斯在.NET应用程序
我有建立在.NET Framework 3.5的.NET应用程序,我想建立詹金斯CI服务器上此应用程序。我已经添加了MSBuild的插件,并增加了道路的2.0,3.5和4.0版本的MSBuild的.exe文件。但我的建设进程正在通过显示下面的错误消息失败。
I have a .net application built on .net framework 3.5, I am trying to build this application on Jenkins CI server. I've added MSBuild plugin and and have added path to the .exe file of 2.0, 3.5 and 4.0 versions of MSBuild. But my building processes are failing by showing the below error message.
Path To MSBuild.exe: msbuild.exe
Executing command: cmd.exe /C msbuild.exe Neo.sln && exit %%ERRORLEVEL%%
[Test project] $ cmd.exe /C msbuild.exe Neo.sln && exit %%ERRORLEVEL%%
'msbuild.exe' is not recognized as an internal or external command,
operable program or batch file.
Build step 'Build a Visual Studio project or solution using MSBuild.' marked uild as failure
Finished: FAILURE
谁能plz帮助我.. ??
Could anyone plz help me out..??
要进行的MSBuild插件工作时,你需要配置的插件在詹金斯的管理界面。
To make the MSBuild plugin work, you need to configure the plugin in the Jenkins management screen.
请注意名称字段中,在那里我已经叫这个特定的配置v4.0.30319。你可以说它是任何你喜欢的,但理想的名称会以某种方式引用的版本。
Note the "Name" field, where I've called this particular configuration v4.0.30319. You could call it anything you like, but ideally the name will somehow refer to the version.
您将需要稍后查阅这个名字在詹金斯项目多数民众赞成失败。
You'll need to refer to this name later in the Jenkins PROJECT that's failing.
注:黄色预警意味着路径的MSBuild字段应填入一个目录名而不是文件名。在实践中你需要在这里输入文件名太(即msbuild.exe)或生成步骤将失败。
Note: The yellow warning implies that the Path to MSBuild field should be populated with a directory name rather than a file name. In practice you do need to enter the filename here too (ie. msbuild.exe) or the build step will fail.
在詹金斯的项目多数民众赞成失败,进入的MSBuild生成步骤。
In the Jenkins project that's failing, go to the MSBuild build step.
在构建步骤中的第一个字段是MSBuild的版本。如果您创建配置任何版本的MSBuild之前构建步骤,这里的值将是(默认值)。
The first field in the build step is "MSBuild Version". If you created the build step before configuring any MSBuild versions, the value here will be (default).
配置一个或多个的MSBuild版本之后,下拉将填充可用的配置。选择您需要的人。
After configuring one or more MSBuild versions, the drop down will be populated with the available configurations. Select the one you require.
您可以在这里看到,我现在已经选择了上述相匹配的安装指定的配置。
You can see here that I've now selected the named configuration that matches the installation above.