I would like to add a hook that warns the user when they are pushing a binary encoded file. I do not want to block the push explicitly, but would like to prompt the user (via the command line) that they are checking in a binary file, and allow them to interactively allow or disallow the commit via the prompt. The documentation said there were examples on giving the user output, but was wondering if there was an example for prompting the user for information as well, or if this is even allowed with this plugin?
Thanks for your help! Also, great plugin!
No, there is no way to read data from user, because it's not allowed by specification of git push protocol/git push command implementation.
However, you can implement simple countdown and slightly suspend push process with notifying user that he is just about of pushing binary blob.
I've done it for checking coding standards.
We’ve been building a plugin to integrate Bitbucket Server and Jenkins CI, and I’m excited to announce that our alpha is ready to download and install. It lets you seamlessly configure a Jenkins job ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events