是否可以远程触发某些特定修订版本的构建?

发布于 2024-12-23 15:45:14 字数 545 浏览 5 评论 0原文

是否可以远程触发某些特定修订版本的构建?
正如我所看到的,可以仅配置身份验证令牌。
但不是修订。
现在我在 SVN 提交后脚本中使用以下 URL 在提交后远程调用构建:
http://tsthost/hudson/view/ci/job/tst_trunk/build ?token=CHECK_TST_TRUNK

但我想使用类似下一个 URL 的内容来构建特定修订版: http://tsthost/hudson/view/ci/job /tst_trunk/build?token=CHECK_TST_TRUNK&revision=123

有用于此目的的插件吗?

Is it possible to trigger build of some specific revision remotely?
As I can see it is possible to configure authentication token only.
But not revision.
Now I use following URL in SVN post-commit script to call build remotely after commit:
http://tsthost/hudson/view/ci/job/tst_trunk/build?token=CHECK_TST_TRUNK

But I would like to use something like next URL to build specific revision:
http://tsthost/hudson/view/ci/job/tst_trunk/build?token=CHECK_TST_TRUNK&revision=123

Is there a plugin for this purpose?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

海之角 2024-12-30 15:45:14

您可以使用下一个方法:

  1. 使您的构建参数化。
  2. 添加参数revision(使用默认值HEAD以支持常规运行)
  3. 在构建脚本中添加行svn update -r $revision

You can use next approach:

  1. Make your build parameterized.
  2. Add parameter revision (with default value HEAD to support regular runs)
  3. In build script add line svn update -r $revision.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文