Server-side pre-receive hook and Control Freak

Issue #121 wontfix
Pang, Brian created an issue

Hi Support,

I am intercepting the pre-receive hook and also want to use the Control Freak to update the Jira.

Can you provide information what I need to make both works?

Thanks!

Regards,

Brian

Comments (3)

  1. Julius Davies [bit-booster.com] repo owner

    I’m sorry to hear that you’re having problems with Control Freak. I see that this bug is filed as a blocker (the highest severity!).

    Do you have any error messages or log snippets you can share? I would like to recreate the problem in my own environment before I try to make a fix!

    Instructions for recreating the bug would be helpful. Any error messages would also be helpful, and if you have access to Bitbucket logs, sometimes useful information is in there as well.

  2. Pang, Brian reporter

    In the repository hooks directory, we have a pre-receive hooks.

    The Bitbucket server default uses this one:

    atlbitbucket@ruckus-git:~/shared/data/repositories/145/hooks$ cat pre-receive.default 

    #!/usr/bin/env bash

    #>*******************************************************

    # THIS FILE WAS AUTO-GENERATED BY ATLASSIAN BITBUCKET.

    # IT CONTAINS NO USER-SERVICEABLE PARTS.

    #>*******************************************************

    if [[ "$OSTYPE" == "cygwin" ]]; then

    exec $(cygpath $STASH_HOOK_COORDINATOR) hooks/pre-receive.d "$@" <&0 >&1 2>&2

    else

    exec $STASH_HOOK_COORDINATOR hooks/pre-receive.d "$@" <&0 >&1 2>&2

    fi

    ###

    If we uses the default, the Jira will update from the Control Freak. I would like to add in our pre-receive hook to make it work side-by-side.

    Can you let us know how we can make both works side-by-side?

    Thanks!

  3. Log in to comment