gpt4 book ai didi

c# - 来自 Github 的自动化构建

转载 作者:太空宇宙 更新时间:2023-11-03 10:33:39 25 4
gpt4 key购买 nike

我想从 Github 存储库自动构建我的项目。这是一个 C# 项目。我可以使用 Jenkins 或类似的东西来做到这一点吗?我曾将 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.

关于c# - 来自 Github 的自动化构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28774641/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com