We are trying restrict commits that contain files over a certain size and found this resource: https://bitbucket.org/atlassianlabs/stash-filesize-hook-plugin
This is exactly what we need but unfortunately we do not know how to set this up. Unfortunately I'm a sysadmin and not a programmer so I'm not sure what I need to do with the source to get this setup to work properly with stash... any instrictions or direction would be greatly appreciated!
I've uploaded a compiled jar to the Bitbucket repository for you:
You should be able to upload that on the plugins administration screen, and then the hook will be visible in the repository hook page which can be enabled per-repository (and a maximum size configured).
Let me know if you have any questions, although I do need to mention that this isn't an official plugin and as such we don't support it in our normal capacity.
This plugin is wonderful, however it seems to have been broken by Stash 2.5. Changes in the API?
The configure screen gets stuck while I see that this AJAX request
is returning "204 No Content".... Not what the plugin expects?
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot