哈德逊综合运营

发布于 2024-12-03 12:09:45 字数 272 浏览 4 评论 0原文

只是寻找一些一般的运作方式。 如果有 Hudson ci 服务器,Hudson 是否从存储库获取源代码并进行构建,那么构建是否正常,假设成功,将构建的内容部署到某处,例如 WAR 文件?

我想知道 Hudson 是否设置为使用特定的构建产品,例如 Maven,然后只使用 Maven 命令来进行构建?

Hudson 如何知道何时获取代码并进行构建,我假设它是可编程的,一般来说,有哪些选项,即基于时间,它是否知道代码签入何时发生,或者?

现在尝试了解全局以及一些机制是如何工作的。

Just looking for some general how things work.
If there is a Hudson ci server, does Hudson get the source from the repo and do a build, then is it normal to have the build, assuming a successful, deploy what is build somewhere, say a WAR file?

I'm wondering if Hudson is setup to use a particular build product, say maven, then just use maven commands to do the build?

How does Hudson know when to get the code and do a build, I'm assuming its programmable, in general, what are the options, ie, time based, does it know when a code check in has happened, or ??

Trying to get the big picture for now, and how some of the mechanics work.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

等往事风中吹 2024-12-10 12:09:45

一些简短的答案:

  • 如果有 Hudson ci 服务器,Hudson 是否从存储库获取源代码并进行构建

是的,这是在 Hudson 中启动构建的一个选项;您可以设置构建作业以指定的时间间隔轮询源代码存储库。几乎所有主要的 SCM 系统都受支持。

  • 那么构建是否正常,假设成功,部署
    某处构建了什么,比如 WAR 文件?

这很容易设置。

  • 我想知道 Hudson 是否设置为使用特定的构建产品,
    说maven,那么只使用maven命令来进行构建?

Hudson 原生支持 Maven 和 Ant 构建;您只需告诉它执行 Ant 构建文件或 Maven POM 中的一组特定目标即可。 Hudson 的开源分支 Jenkins 也支持 Gradle;我不确定哈德森是否这样做。

  • Hudson 如何知道何时获取代码并进行构建,我是
    假设它是可编程的,一般来说,有哪些选项,即时间
    基于,它是否知道代码签入何时发生,或者?

您可以按计划轮询 SCM 中的某个位置(或一组位置),并在检测到更改时启动构建,或者只是将构建设置为按固定计划运行。您还可以根据另一个构建的结果触发构建。

Some brief answers:

  • If there is a Hudson ci server, does Hudson get the source from the repo and do a build

Yes, this is one option for kicking off a build in Hudson; you can set the build job to poll your source code repository at a specified interval. Pretty much all of the main SCM systems are supported.

  • then is it normal to have the build, assuming a successful, deploy
    what is build somewhere, say a WAR file?

This is easy to set up.

  • I'm wondering if Hudson is setup to use a particular build product,
    say maven, then just use maven commands to do the build?

Hudson has native support for Maven and Ant builds; you just tell it to execute a particular set of targets from your Ant build file or Maven POM. Jenkins, the open source fork of Hudson, also supports Gradle; I'm not sure whether Hudson does.

  • How does Hudson know when to get the code and do a build, I'm
    assuming its programmable, in general, what are the options, ie, time
    based, does it know when a code check in has happened, or ??

You can poll a certain location (or set of locations) in your SCM on a schedule and kick off a build when changes are detected, or just set the build to run on a fixed schedule. You can also trigger a build based on the results of another build.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文