I need to tag a directory using jenkins. This is what is my need.
I have a folder xyz in a ssh server. I have checked out to jenkins directory /var/lib/jenkins/jobs/Jobname/workspace
I need to tag the workspace directory in an svn location https://xxx.xxx.com/svn/xx/tags/xx-xx/xx-xx/${JOB_NAME}-${BUILD_NUMBER}-${BUILD_ID}
how to do this? pleaaase help.
best to do so is using the Subversion Tagging Plugin.
It allows to create a post-build action where Tag Base URL, Tag Comment, and Tag Delete Comment can be configured. Let's assume your workspace directory is svn://repo/trunk
. As Tag Base URL you'd configure tags/${JOB_NAME}-${BUILD_NUMBER}-${BUILD_ID}
.
When your build completes successful SVN tagging will be automatically executed.