version-controlgithookscheckinrational-team-concertserver-side-validation

Git hook equivalent in RTC SCM


We have Gitlab configured like following:

  1. If anyone pushes their code, first sever side git hook (pre-receive) will trigger SonarQube Quality checks, if any error in code it rejects that push.
  2. Also checks for file types, if some files like .zip, .o or .class are present, the code gets rejected by the same server side hook.
  3. Same for file size.

Are the above 3 validations possible in IBM RTC SCM before delivering the code to the server? How? I know .jazzignore, but I want specifically for server side rules.

We want to know it as we are switching to RTC. We also have hooks to build via Jenkins etc. etc., but I know this is possible in RTC.


Solution

  • IBM Rational Team Concert does not have out of box possibility to address those 3 scenarios. You can do it by implementing your own Operations Behaviors (server-side extensions) in Java. Example

    If you are a huge fan of Git, I recommend using RTC Git Integration which is quite good.