哈德森新手:成功构建后如何运行软件
我是持续集成和软件开发领域的新手。
我想尝试 hudson,所以我将它安装在我的 ubuntu 机器上并创建了一个新作业。我把它指向一个开源项目的 svn (keepassx) 只是为了尝试。
Hudson 从存储库下载了所有内容,并标记为蓝色表示成功构建。 我现在不应该能够以某种方式执行该软件吗?我以为一旦构建完成,我就可以运行它,但是我在 hudson 用户主目录下的项目主页中找不到任何可执行文件。
谢谢。
i'm new to world of continuous integration and software developement.
I wanted to try hudson so i installed it on my ubuntu machine and created a new job. i pointed it to an open source project's svn (keepassx) just to try.
Hudson downloaded everything from the repository and marked blue for successful build.
aren't i suppose to be able to execute the software now somehow ? i thought once it is built i can run it, but i can't find any executable in the project's home page under hudson user home dir.
thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Hudson/Jenkins 构建分为三个步骤:
听起来您已经完成了第 1 步。
如果您链接到的项目有构建说明(ant、maven 等),您可以将这些作为构建步骤输入到项目配置的“构建”部分。
然后,您可以获取生成的文件(“工件”——jar、exe、so、bin 等)并使用“构建后操作”发布这些文件,或者如果需要,您可以直接从工作区文件系统获取它们。
假设构建工件是可执行文件,您可以在从 Hudson 下载它后运行它,或者进行构建步骤或构建后操作,将其移动到适当的位置并运行它。
在尝试让 Hudson 处理构建之前,它有助于在本地运行构建 - 然后您就知道构建步骤是什么,以及最终的构建工件是什么。
A Hudson/Jenkins build breaks down into three steps:
It sounds like you've got step 1 covered.
If the project you linked to has instructions for building (ant, maven, etc.), you can enter these as build steps into the "Build" section of the project configuration.
You can then take the resulting files ("artifacts"--jar, exe, so, bin, whatever) and publish these using the "Post-build Actions", or if necessary you can grab them directly from the workspace filesystem.
Assuming the build artifact was an executable, you could then run it after downloading it from Hudson, or make a build step or post-build action which moved it into the appropriate location and ran it.
It helps to run the build locally before trying to get Hudson to handle it--then you know what the build steps are, and what the final build artifacts are.
jenkins/hudson 如何知道如何“执行”您告诉它下载和构建的任意包?您可以编写一个程序或脚本来运行您想要运行的内容,然后创建一个下游作业(例如)来执行此操作。
How would jenkins/hudson know how to 'execute' some arbitrary package that you told it to download and build? It's up to you to write a program or script to run what you want to run, and then make a downstream job (for example) to do so.