Hi,
I have a scenario. Can someone please help me on this?
*Scenario:*
· There are several branches of the svn repo.
· When the branch is about to be merged to the trunk, I want to run
an analysis ( code quality analysis using sonar).
· The merge must be allowed iff it has no violations or the
threshold has not been crossed.
My question is,
On clicking merge, which script is invoked? Can I change it? If so, how?
Or, Can a new .exe or .bat can be invoked?
*Detailed Explanation:*
· There is a trunk in the central server, with a common codebase.
· It has different branches on which different teams are working,
based on different requirements.
· When coding on that particular branch is completed, they try to
merge it back to trunk from client side (Tortoise SVN).
· When the attempt to merge is done, sonar analysis must be done
(running some .bat scripts).
· If there are any new critical & blocker violations are present,
or if the violation thresholds is crossed, the merge should not be allowed.
It must be aborted.
· This is like introducing a forced check-in policy. The code in
the server must not be updated, unless the violations have been resolved.
Usage of CI tool like Jenkins has its advantages. However, Jenkins fetches
the code from the central server. But, my requirement is:
*"To decide whether the code must be allowed to be merged (checked-in) to
server or not, based on the sonar analysis."*
Looking forward for your response.
Thanks & Regards,
Reshma
|