Hi,
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!
Thanks!
Hi James,
I've uploaded a compiled jar to the Bitbucket repository for you:
https://bitbucket.org/atlassianlabs/stash-filesize-hook-plugin/downloads
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.
Cheers,
Charles
Thank you so much Charles! We'll give it a shot, appreciate your help with this!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Daniel,
Sorry, I can't help you without more information. I need the logs from your browser and/or Stash (see above). Lastly, have you tried to clear your browser cache? Does it happen to other users or just you?
Charles
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Daniel,
That does't sound right. Again, is there anything in your Javascript console, or an error in the $STASH_HOME/log/atlassian-stash.log file? I can confirm that the hooks on our 2.5 production server are working as expected.
Charles
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Daniel,
The API around hooks shouldn't have changed at all in 2.5. Also, that request is generic across all hooks, so that would mean that everything else was broken too. Are you seeing an error in either your Stash logs (in the home directory), or an error in the Javascript (ie when you open your Chrome console)?
Charles
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.