Server-side pre-receive hook and Control Freak
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)
-
repo owner -
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!
-
repo owner - changed status to wontfix
You should use this plugin to implement a custom pre-receive alongside Control-Freak:
(Note: We don't maintain that plugin and we don't receive any revenue for mentioning them. But really looks like it would be the best solution for your scenario.)
- Log in to comment
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.