laura
laura

Reputation: 2961

Use Hudson to push changes to another SVN Repository

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

Upvotes: 0

Views: 135

Answers (2)

prusswan
prusswan

Reputation: 7101

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.

Upvotes: 1

Lazy Badger
Lazy Badger

Reputation: 97295

  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)

Upvotes: 0

Related Questions