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
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With