确定来自 Hudson 的最新 svn 标签以进行部署

发布于 2024-12-29 04:51:17 字数 210 浏览 4 评论 0原文

我们使用 Subversion 进行源代码控制,使用 Maven 进行依赖管理/发布准备,并使用 Hudson 作为 CI 服务器。 mavenreleaseprepare 进行发布标记并在 SVN 中创建一个新标记。我想在 Hudson 中运行最新标签(默认情况下)和按需其他标签的部署作业。

有没有办法获取Hudson中最新的SVN标签信息并将其传递给参数化作业。

谢谢

We use Subversion for source control along with Maven for dependency management/ release preparation and Hudson as the CI server. The maven release prepare does the release tagging and creates a new tag in SVN. I would like to run the deploy job in Hudson off the latest tag (by default) and off other tags on demand.

Is there a way to get the latest SVN tag information in Hudson and pass it to a parameterized job.

Thanks

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

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

发布评论

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

评论(1

梨涡 2025-01-05 04:51:17

如果您使用 svn switchsvn ls

svn switch http://your/svn/repo/tags/'svn ls http://your/svn/repo/tags | tail -n 1' repo

您将在 SO 问题“从 subversion 自动化构建中找到其他选项标签

It should be possible, provided you add a build action which list the tags of your svn repo, using svn switch, and svn ls:

svn switch http://your/svn/repo/tags/'svn ls http://your/svn/repo/tags | tail -n 1' repo

You will find other options in the SO question "Automating builds from subversion tags"

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文