Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Possible to run msbuild in Jenkins on Ubuntu 13.10

I am learning Jenkins and today I installed Jenkins on an Ubuntu 13.10 AWS instance. Everything overall has been going well, except I have not had any luck building using msbuild. Jenkins installed the MSBuild plugin fine, but I keep getting errors when it tries to build.

I have been scouring google and have been having a heck of a time finding anything showing this working on ubuntu. So I thought I would post here and get a final answer. My projects are in VS and I am pointing the msbuild call to the sln. Any help would be great! Thanks!

Dan

like image 270
xtr33me Avatar asked Jan 18 '14 04:01

xtr33me


People also ask

How configure MSBuild in Jenkins?

From the Global tool configurations, you can setup MSBuild Configuration. Here, you have to copy the MSBuild.exe path from your system- Program files and paste it to Path to MSBuild textbox. Give a name for your MSBuild and now, apply and save the changes. Select a Freestyle project, click on ok.


1 Answers

The msbuild plugin is just a wrapper to call the msbuild executable. Since java is portable, the plugin will install on Ubuntu. Run? Unlikely.

A (probably not) possible way to get a MSbuild to run on a Linux server is to use xbuild out of the mono project. You could also try Wine.

You can also spend hours upon hours trying to make wine from oranges.

Your better option is to install Jenkins on a Microsoft OS based cloud server.

http://social.msdn.microsoft.com/Forums/vstudio/en-US/71bcb26b-3149-41c7-9ad7-fe908ffe983e/msbuild-on-linux?forum=msbuild

like image 128
Electrawn Avatar answered Sep 23 '22 20:09

Electrawn