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

Multi tool use
Multi tool use

The name of the picture


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 :



enter image description here



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. Is not complex as many believe.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

q h2mBe7T0JSuC6ZuV,aKmka,FMM5Bs,m4
89eGr 8 ub2pgXPWzwuZ

Popular posts from this blog

Makefile test if variable is not empty

Will Oldham

Visual Studio Code: How to configure includePath for better IntelliSense results