How to create a Mono build server on Linux (Jenkins on Ubuntu)

I am trying to set up a build server for a Mono project on Ubuntu.

The motivation is to have my C # projects for .NET created to work on Linux nodes. So I want to develop on Windows / Linux, commit and click and have binaries for Linux created on a machine running Jenkins (there is already an instance to create for Windows)

The embedded server side seemed to be simpler as Jenkins provides an easy way to do this. For the Mono part, there are many different dependencies and packages to choose from.

So, I basically followed the instructions for Jenkins provided on their side , and Jenkins worked.

Now the question is what I need to install so that Jenkins builds Mono projects. I am working with Mono-Develop 3.0.4.7 at the moment and have created a test console project. I do not participate in any third-party libraries, I think, but I really do not know what is contained in the Windows Mono installation.

So here is what I ask:

  • What I need to install on Ubuntu and what would be nice to have?
  • Any special requirements for the project file? I read that Mono uses the Windows project format. It is right?
  • Are there any plugins for Jenkins supporting me with the building for Mono?
  • No matter what I care How to add special paths to PATH or some tools that may be of interest?

Any sources of knowledge are interesting. I would be nice if they explained why , I do not like to read β€œdo it, then do it and do something else later”, without anyone explaining the backgrounds, which is very;)

+4
source share
1 answer

for Linux based on a machine running Jenkins (there is already an instance for build for Windows)

If you have a build server on Windows that creates your .NET assemblies, you don't need linux. Building a build from .NET 4.0 on Windows will work with the latest version of Mono on Linux without recompiling them. As long as you guarantee that you are not using any missing API from Mono. And if you use the missing API, it will not compile with Mono anyway.

I suggest saving yourself a headache by manually creating the Mono SDK on Ubuntu and supporting the Windows build server. The last time I checked, you would have to rebuild Mono on your Ubuntu system, since the Mono installation for Ubuntu is deprecated by default.

+2
source

Source: https://habr.com/ru/post/1446766/


All Articles