java - 没有用户界面的 Hudson 项目

标签 java continuous-integration hudson

我可以使用 Hudson 的用户界面配置、创建/更新现有项目吗?
是否可以通过更改配置文件或其他方式实现?

最佳答案

Remote Access API 页面提到您使用它创建/复制作业。

Remote access API is offered in a REST-like style.
That is, there is no single entry point for all features, and instead they are available under the ".../api/" URL where "..." portion is the data that it acts on.

For example, if your Hudson installation sits at http://deadlock.netbeans.org/hudson/, http://deadlock.netbeans.org/hudson/api/ will give you HTML lists of all available functionality that act on the Hudson root.

在我的 Hudson 上,/api 地址给出:

创建工作

To create a new job, post config.xml to this URL with query parameter name=JOBNAME.
You'll get 200 status code if the creation is successful, or 4xx/5xx code if it fails.
config.xml is the format Hudson uses to store the project in the file system, so you can see examples of them in /server/path/to/your/hudson/home.

关于java - 没有用户界面的 Hudson 项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3749170/

相关文章:

java - Python 列表与 Java 数组效率

java - 如何在 restFul 服务 URL 末尾添加参数?

java - 当套接字被接受时,我怎样才能关闭这个对话框?

java - Swing/Java3D 应用程序中基于状态的撤消 : AOP solution?

jenkins - 将 Cypress 与 Jenkins 集成

maven - 在 Teamcity 中设置项目运行程序以将构建 Artifact 部署到 Artifactory

maven - 如何在 Docker 容器中运行 JUnit 测试并在 JUnit 失败时让容器无法启动?

java - svn-tag Hudson 插件不起作用

java - 编辑列出的 hudson java 系统信息

Jenkins - 如何获得两次运行之间的差异