Search code examples
ubuntujenkinsmsbuildjenkins-plugins

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


Solution

  • 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