来自 Github 的自动构建

Automated builds from Github

我想从 Github 存储库自动构建我的项目。这是一个 C# 项目。我可以使用詹金斯或类似的东西来做到这一点吗?我已经将 Jenkins 与 Java 一起用于 Maven 项目,但我从未将其与 Github.

一起使用

GitHub 插件可以帮助您入门

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)

关于如何构建 MS 项目,也有 plugin

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.