如何远程触发CruiseControl构建? [英] How do I trigger a CruiseControl build remotely?

查看:84
本文介绍了如何远程触发CruiseControl构建?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个CruiseControl.net(v1.8.4.1)服务器,该服务器基于检查Git更改的触发器来运行构建。通过将参数提供给URL,我希望能够远程启动参数化的构建。类似于 http://cruisecontrol.local/api/ build?job = PreCommitBuild& project = widgets& branch = feature / story123

I have a CruiseControl.net (v1.8.4.1) server that runs builds based on a trigger that checks for changes in Git. I would like to be able to initiate a parameterized build remotely, by giving the parameters to a URL. Something like "http://cruisecontrol.local/api/build?job=PreCommitBuild&project=widgets&branch=feature/story123".

最终目标是使诸如Gerrit或Stash内置的审查系统能够通过将某些参数发布到CruiseControl来启动特定分支的构建

The end goal is to have a review system such as that built into Gerrit or Stash be able to initiate a build for a specific branch, by posting some parameters to the CruiseControl server with a web API call.

这可能吗?如果可以,怎么办?

Is this possible, and if so, how?

推荐答案

对此进行了一些修补后,我最终获得了远程程序集。客户端代码可以正常工作,但是服务器的公开API(至少是我的服务器)似乎容易出现意外的空引用异常。

After tinkering with this for a bit, I wound up getting the code for the Remote assembly from GitHub. The client code works fine, but the server's exposed API (my server at least) seems to be prone to unexpected null reference exceptions.

这篇关于如何远程触发CruiseControl构建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆