哈德逊综合运营
只是寻找一些一般的运作方式。 如果有 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一些简短的答案:
是的,这是在 Hudson 中启动构建的一个选项;您可以设置构建作业以指定的时间间隔轮询源代码存储库。几乎所有主要的 SCM 系统都受支持。
某处构建了什么,比如 WAR 文件?
这很容易设置。
说maven,那么只使用maven命令来进行构建?
Hudson 原生支持 Maven 和 Ant 构建;您只需告诉它执行 Ant 构建文件或 Maven POM 中的一组特定目标即可。 Hudson 的开源分支 Jenkins 也支持 Gradle;我不确定哈德森是否这样做。
假设它是可编程的,一般来说,有哪些选项,即时间
基于,它是否知道代码签入何时发生,或者?
您可以按计划轮询 SCM 中的某个位置(或一组位置),并在检测到更改时启动构建,或者只是将构建设置为按固定计划运行。您还可以根据另一个构建的结果触发构建。
Some brief answers:
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.
what is build somewhere, say a WAR file?
This is easy to set up.
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.
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.