Reputation: 2961
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
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
Reputation: 97295
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