Pre-Commit Web Hooks Now Available

Many customers have expressed their requirement to perform certain actions prior to developers checking-in their code.  For example:

  • Validate certain commit messages, such as a Trac or other ticket system ID
  • Validate that the files added follow a specific file naming convention

Based on these validations, we can setup rules to accept or reject these commits. We’ve now made this possible for all customers with pre-commit web hooks. Here’s how it works:

1) Log into your Codesion account and choose the “Services” tab, then “Subversion – Commit Hooks

2) Select “Pre-Commit Web Hook” and enter your script URL, for example: https://yourserver.com/pre_commit_hook

  • this is the HTTP(s) URL that you want to send the commit information to

3) Select the Timeout between 5 seconds and 5 minutes

  • this determines how long we wait for a response from your HTTP script

4) Select the Default Action to deny or allow the commit

  • if we did not get a response from your script, in other words, it timed out, then the default action determines whether to deny or allow commit

5) Once a user performs a commit to the SVN repository, Codesion will send the commit information to your URL

6) The commit will either be denied or allowed based on your custom pre-commit script

Tagged with: , , ,
Posted in CloudForge

Leave a Reply

Your email address will not be published. Required fields are marked *

*

CAPTCHA Image

*

connect with CollabNet
   Contact Us
Subscribe

Have new blog posts sent directly to your email.

looking for something
conversations

CloudForge: Join #CollabNet for the TeamForge® 8.1 release webinar and learn about its new powerful enterprise #Git features http://t.co/IHfnkoEfGr
Date: 1 September 2015 | 5:00 pm

CloudForge: Join this #CollabNet #webinar and learn how to reduce server loads with #Git replication and improve Git performance http://t.co/pB1DEsWFPh
Date: 31 August 2015 | 6:00 pm

CloudForge: Seamlessly integrate #Git upstream and downstream to tools such as #Jira and #Jenkins on this #CollabNet #webinar http://t.co/pB1DEsWFPh
Date: 28 August 2015 | 5:30 pm