Xorcist Posted August 17, 2016 Report Share Posted August 17, 2016 Is it at all possible to prevent check-ins based on running an external process? For example I don't want to allow a check-in of code that was not formatted with our company's standard (and we have different standards for different languages). I know I can check these in most CI servers during build (with optional plugins, StyleCop, etc.), but I don't want to allow a build failure if I can prevent it up-front. My thought process is something like: Check-In attempt Run one or more executables to validate code files On any failure, do not check-in otherwise allow check-in Link to comment Share on other sites More sharing options...
manu Posted August 18, 2016 Report Share Posted August 18, 2016 Hi! I think you can do it using a before client checkin trigger. https://www.plasticscm.com/documentation/triggers/plastic-scm-version-control-triggers-guide.shtml#Clientcheckin Link to comment Share on other sites More sharing options...
Xorcist Posted August 22, 2016 Author Report Share Posted August 22, 2016 Thanks, I'll give that a try. Link to comment Share on other sites More sharing options...
manu Posted August 23, 2016 Report Share Posted August 23, 2016 Don't forget to share the results! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.