Posts

Showing posts with the label svn

How can I automatically svn tag build output files with Jenkins?

Image
How can I automatically svn tag build output files with Jenkins? I'm automating the following manual process with Jenkins: Steps 1-3 are working, but I need some help with tagging in step 4. There are some possible solutions that I've excluded: Tools seem to be available for Git. Is there another way to do it for svn that I haven't thought of? 1 Answer 1 What about svn commandline? Your could try to create a tag using shell : svn copy http://svn/mywebsite/trunk http://svn/mywebsite/tags/2.2.1 -m "Release 2.2.1 - added new feature" Source: http://svnbook.red-bean.com/en/1.6/svn.branchmerge.tags.html If it works, your step 4 could be a build step called : Execute Shell : Just put your shell script in the text-area called command . You could use variables for your url, tag number, etc Finally, you could create a jenkins plugin called svn command line tool to make life easier. I...