You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create shell script hook with the following content in /external-hooks/ directory:
#!/bin/bash
echo "NO"
exit 1
chmod +x testing.sh
In Bitbucket enable the hook for the project
Visit repository hooks and see that the repository is now inheriting from the project
Disable hook at the repository level
Commit code in the repository - The hook is still called when it should not be
Other findings
I noticed when changing the script name and updating the project pre-receive hook and trying to commit again shows that the repository hook was not updated automatically. (Can make a separate issue for that if needed)
The text was updated successfully, but these errors were encountered:
@kovetskiy , FYI we have been using the feature.hook.scripts=true in bitbucket.properties since we upgraded to 8.19 from 7.21.X
This does not resolve the issue.
Summary
Setting pre-receive hooks on a repository to not inherit from the project level does not work
Versions
Bitbucket version: 8.19.3
External Hooks version: 13.1.2
Steps to replicate issue:
Other findings
I noticed when changing the script name and updating the project pre-receive hook and trying to commit again shows that the repository hook was not updated automatically. (Can make a separate issue for that if needed)
The text was updated successfully, but these errors were encountered: