使用 Hudson 将更改推送到另一个 SVN 存储库
我目前在一个稍微不寻常的环境中工作。我们正在 Ubuntu 虚拟机上编写代码,该虚拟机无法看到我们的目标 SVN 存储库。
我们正在使用本地 SVN 存储库,该存储库由 Hudson 进行轮询。
Hudson 环境可以看到目标 SVN 存储库。
因此,在成功构建后,我想使用 Hudson 将 SVN 更改从本地存储库推送到目标存储库。
我需要保留 SCM 历史记录。我们将是唯一对这两个存储库做出承诺的人。
有谁知道这是否可能?
谢谢! -L
I am working in a slightly unusual environment at the moment. We are writing code on Ubuntu virtual machines, which cannot see our target SVN repository.
We are using a local SVN repository, which is polled by Hudson.
The Hudson env can see the target SVN repo.
So I'd like to use Hudson to push SVN changes from the local repo to the target repo, following a successful build.
I would need to retain the SCM history. We will be the only ones committing into both repositories.
Does anyone know if this is possible?
Thanks!
- L
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
svn co <DEVREPO>; .
ORsvn up
(取决于上述准备工作)svn relocate;
svn ci -m“构建时镜像修订”
(我的草稿中缺少一些选项 - 配置、身份验证、非交互模式)
svn co <DEVREPO> .
ORsvn up
(depending from above preparation)svn relocate <DEVREPO> <CLIENTREPO>
svn ci -m "Mirror revisions on build"
(some options missing in my draft - config, authentifcation, non-interactive mode)
您还可以尝试使用 git 本地存储库并通过 git-svn 与该 svn 存储库进行交互。因此,Hudson 将在 git-svn 克隆(您将从 git 本地存储库推送到该克隆)上进行操作,并通过 shell 脚本从 svn 存储库执行 git svn fetch|dcommit 。
You can also attempt to use git local repositories and interface with that svn repository via git-svn. So Hudson will be operating on a git-svn clone (which you will push to from your git local repos), and by means of shell script, performing
git svn fetch|dcommit
from/to the svn repo.