SCM

Documentation wiki

Main Page

From HPCforge Wiki

Revision as of 15:03, 27 October 2011 by Mconsoli (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

HPCForge basic documentation

Use of SCMs

Using HPCforge SCMs (Subversion, git ...) requieres the use of a public key cryptography, based on a public and a private key to encrypt and decrypt data. See this document for a step by step description.

How to setup automatic svn update notifications

Setting on Mailman

To get automatic notifications you have to disable moderation on the project list:

  • Login to the web interface https://hpcforge.org/
    (you must have admin rights on your project)
  • Select the project, select the "Lists" tab, click on the "Admin" link
  • Click on "Administrate" or choose to get a new password (reset admin pass)
    Then click "Administrate"
  • Login into the mailman system
    "http://lists.hpcforge.org/cgi-bin/mailman/admin/<myproject>-commits/general"
  • General Options
    • Privacy options...
      • Sender filters
        If you do not want your list's subscribers to be moderated,
        set "By default, should new list member postings be moderated?" to "no"
        --> List of non-member addresses whose postings should be automatically accepted.
        --> Add "noreply@hpcforge.org"
        --> Click on submit to save your changes

Setting on the scm

The following commands will create a post-commit hook for your project:

ssh <username>@hpcforge.org
cd /var/lib/gforge/chroot/scmrepos/svn/<myproject>/
cp /usr/share/subversion/hook-scripts/mailer/mailer.py ./hooks/
cp /usr/share/subversion/hook-scripts/mailer/mailer.conf .
cp ./hooks/post-commit.tmpl ./hooks/post-commit
chmod g+w ./mailer.conf
chmod a+x ./hooks/post-commit

Edit ./hooks/post-commit and add the following:

from_addr = noreply@hpcforge.org
to_addr = <myproject>-commits@lists.hpcforge.org
reply_to = <myproject>-commits@lists.hpcforge.org

Test the svn update notification

On your local machine checkout the repository, modify and then checkin:

mkdir tmphpcforge/
cd tmphpcforge/
svn+ssh://mconsoli@scm.hpcforge.org/var/lib/gforge/chroot/scmrepos/svn/<myproject>
svn checkout
echo test01 > <myproject>/trunk/test01.txt 
svn add <myproject>/trunk/test01.txt
svn commit

You should then receive an email notification.