Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to setup build/deployment for .net project on Jenkins

We currently uses Jenkins for all our (Java) build/deployment from a Linux box. Now we are building a .net client and would like to have a similar automated build/deployment process. I have some research and found the MSBuild plugin for Jenkins. There seems to be two ways to proceed:

  1. Install Wine or other VM for Windows on the linux box, then install .net framework so Jenkins can use it for MSBuild
  2. Setup a new instance of Jenkins on a Windows machine and have a separate build platform.

I am fairly new to the wonderful world of .net so there might be other alternatives that I am not aware of.

So, how do I setup uild/deployment for .net project on Jenkins?

like image 631
ltfishie Avatar asked Mar 19 '12 14:03

ltfishie


1 Answers

I would recommend setting a separate slave on Windows, but run the master from the Linux box. This way you have a centralized way of controlling and monitoring your builds.

I can't say anything about MSBuild plugin, since for historical reasons we run MS Devenv builds via command line (using ANT as the "glue").

We build our product (written mostly in C++) for Windows, OS X, iOS, and Android. Our lower-level build system is CMake-based.

like image 153
malenkiy_scot Avatar answered Sep 28 '22 06:09

malenkiy_scot