Setting up a Jenkins notify webhook using rcextensions?

Robert Rauch robert.rauch at gns-systems.de
Wed Sep 23 19:14:20 UTC 2015


Hi,

I'm currenty trying to setup a generic post-push hook in Kallithea (i.e.
one that works both for git and mercurial repositories) using rcextensions.

Unfortunately, I have not found much documentation on this and I got
stuck. I've put a directory named 'rcextensions' in the directory where
Kallitheas ini configuration file resides, containing a file named
`__init__.py` with the following contents:

  import logging

  logger = logging.getLogger(__name__)

  def _pushhook(*args, **kwargs):
      logger.info("entering _pushhook")
      pollJenkins(**kwargs)
      return 0

  PUSH_HOOK = _pushhook

  def pollJenkins(**kwargs):
    ...

  logger.info("rcextensions loaded")


After restarting Kallithea, the line "rcextensions loaded" pops up in
the Kallithea logfiles, however, the PUSH_HOOK doesn't seem to get
triggered when pushing to some repository. What's the problem?

Robert


More information about the kallithea-general mailing list