我可以使用 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 parametername=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/