Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using SVN credentials in Hudson to perform custom SVN actions

Tags:

svn

hudson

What I'm trying to do here is to perform some sort of SVN action using the credentials that Hudson has stored in it.

E.g.

  1. Start a build of project Foo
  2. Project Foo starts a shell script
  3. Shell script performs a tag of the current source for project Foo using the credentials set in Hudson
  4. Build continues

Now I know there are various tagging plugins but these aren't quite what I want since the tagging is dependent on options for the build rather than on the build success. I can script the thing just fine but it all falls down when running under Hudson as svn copy won't work without the required credentials - hence the need to access the one that Hudson has already used to checkout the project.

like image 859
cyborg Avatar asked Nov 14 '22 04:11

cyborg


1 Answers

This article mentions that scripts can access the Hudson SVN credentials from the file system since they are stored in a file in clear text. The article brings up other issues as well, so tread carefully.

like image 127
Bernard Avatar answered Mar 08 '23 05:03

Bernard