Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automated builds from Github

I want to automate builds of my project from Github repository. It is a C# project. Can I use Jenkins or anything similar to do that? I have used Jenkins with Java for Maven projects but I have never used it with Github.

like image 822
user3116971 Avatar asked Mar 21 '26 20:03

user3116971


1 Answers

There is the GitHub plugin which should get you started

This plugin integrates Jenkins with Github projects.

The plugin currently has three major functionalities:

Create hyperlinks between your Jenkins projects and GitHub Trigger a job when you push to the repository by groking HTTP POSTs from post-receive hook and optionally auto-managing the hook setup. Report build status result back to github as Commit Status (documented on SO)

As to how to build a MS project, there is a plugin for that too

To use this plugin, specify the location directory of MSBuild.exe on Jenkin's configuration page. The MSBuild executable is usually situated in a subfolder of C:\WINDOWS\Microsoft.NET\Framework. If you have multiple MSBuild versions installed, you can configure multiple executables.

Then, on your project configuration page, specify the name of the build file (.proj or .sln) and any command line arguments you want to pass in. The files are compiled to the directory where Visual Studio would put them as well.

like image 173
KeepCalmAndCarryOn Avatar answered Mar 23 '26 10:03

KeepCalmAndCarryOn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!