使用 Hudson 将更改推送到另一个 SVN 存储库

发布于 2024-12-17 17:26:41 字数 288 浏览 3 评论 0原文

我目前在一个稍微不寻常的环境中工作。我们正在 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 技术交流群。

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

发布评论

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

评论(2

心是晴朗的。 2024-12-24 17:26:42
  1. Hudson 本身不能任何数据,只能,AFAIK
  2. Hudson 没有 SVN 方面的工作副本(?)
  3. 我认为,你可以尝试在 Hudson 中配置作业,在成功构建后:
    • (我们准备好)
    • svn co <​​DEVREPO>; . OR svn up (取决于上述准备工作)
    • svn relocate;
    • svn ci -m“构建时镜像修订”

(我的草稿中缺少一些选项 - 配置、身份验证、非交互模式)

  1. Hudson per se can not push any data, only pull, AFAIK
  2. Hudson haven't Working Copy in terms of SVN (?)
  3. I think, you can try to configure job in Hudson, which, on a successful build:
    • (prepare WE)
    • svn co <DEVREPO> . OR svn 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)

聆听风音 2024-12-24 17:26:41

您还可以尝试使用 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.

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