1
votes

I have set up a jenkins instance for a multibranch svn project which is triggered by a post-commit hook passing affected branche's name as parameter to jenkins.
Jenkins then does checkout sources from given branch and compiles them. This works quite well with one restriction.
If builds "x" and "x+1" do run on same branch jenkins shows me the changes for the commit, which triggered build "x+1" under the changes link for the build. If builds "x" and "x+1" run on different branches i get an empty changes list in jenkins and the line "No revision recorded for in the previous build".
My question is now: how can i let jenkins take changes not based to previous build, but to last successfull build based on the same branch?

1
Are the different branches two different jobs or the same? What job type, freestyle? - Jon S
It's a freesty job using svn and .net msbuild. We have a product, where multiple change tasks are processed in parallel by multiple team members. It's alwasy the same call to the different versions (branches) of the source code. - Alexander Powolozki
Okay, thanks for that clarification. See my answer below. - Jon S

1 Answers

0
votes

As far as i know, Jenkins always computes the changes based on the previous build in a specific job. So if you are running multiple branches in the same job, then you're out of luck. I would suggest that you look into one of the following plugins: