SVN changes between 2 tags in Jenkins

I am using Jenkins to create a release package. Once job complete I am tagging new build with specific version in SVN. Now, at this moment I need to generate an email to project's lead developer with a report, which will show changes between 2 SVN tags, so Lead Dev can have a quick look on what is going to production. Anybody had experience like that?

Thanks

Upvotes: 3

Views: 1897

Answers (2)

malenkiy_scot
malenkiy_scot

Reputation: 16605

If you know the tags then write a shell build step that executes (depending on the structure of your repo) something like svn diff http://<repo>/tags/<tag1> http://<repo>/tags/<tag2> > diff.txt (you can add --summarize as well). Now, diff.txt will 'live' in your workspace. You then can use EmailExt plugin to include diff.txt contents in the e-mail with ${FILE} token (EmailExt plugin token reference will be provided via '?' icon when you check 'Editable e-mail notification' box).

Make sure to delete diff.txt before running next build (Workspace Cleanup plugin may help).

Upvotes: 2

Tyler Smith
Tyler Smith

Reputation: 1279

I did something like this in mercurial. I took the hg log between 2 tags and saved that to a file. So something like svn log -r[tag] i think that will get from the tag to the tip. http://www.bernzilla.com/item.php?id=613

Upvotes: 2

Related Questions