Using SVN credentials in Hudson to perform custom SVN actions
What I'm trying to do here is to perform some sort of SVN 开发者_StackOverflowaction using the credentials that Hudson has stored in it.
E.g.
- Start a build of project Foo
- Project Foo starts a shell script
- Shell script performs a tag of the current source for project Foo using the credentials set in Hudson
- 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.
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.
Don't invent the wheel again. Check out the Subversion Tagging PLugin. According to your description for 3. this plugin should be sufficient for you.
精彩评论