Question

I can't install SVN on this box, but we have a TeamCity build agent configured which has svnkit bundled, including svnkit-cli. Is it possible to invoke the cli programmatically, not through TeamCity?

Ideally in a one-liner bash command, something like...

$ java -classpath ".;/teamcity/plugins/svnAgent/lib/*" SVN --version

I can't figure out the syntax to use the bundled svnkit-cli. Is it possible?

FYI:

$ ls /teamcity/plugins/svnAgent/lib/ | grep svn
svnPlugin.jar
svnkit-1.7.9.jar
svnkit-cli-1.7.9.jar
svnkit-javahl16-1.7.9.jar
Was it helpful?

Solution

I worked it out by studying the svnkit with ant documentation.

java -cp ".:%teamcity.agent.home.dir%/plugins/svnAgent/lib/*" org.tmatesoft.svn.cli.SVN --version
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top