228
Customers have installed this add-on in at least 228 active instances.
    by Christian Galstererfor Bitbucket Server 4.0.0 - 4.11.2 and more versions
    Versions available for Bitbucket Server 3.3.1 - 3.11.6
    Unsupported
    This add-on isn't formally supported, but you can ask a question via Atlassian Answers.

    Ask a question

    Unsupported
    This add-on isn't formally supported, but you can ask a question via Atlassian Answers.

    Ask a question

    Data Center
    This add-on is compatible with the clustering and high-availability capabilities of our products.
    Get it nowFree add-on

    Hooks and merge checks to check file attributes, like size, name; commits which contain files which are not compliant are rejected

    Hooks and merge checks to check file attributes, like size, name; commits which contain files which are not compliant are rejected

    File Hooks

    File Size Hook - Configuration

    File Name Hook - Configuration

    Configure the "File Size Hook" and the "File Name Hook "as "Pre receive" hooks in your repository settings.

    Allows to specify a regular expression and size limit. Commits containing files matching the pattern and file size are rejected. Up to 5 pattern and size combinations can be specified.

    Allows to specify a regular expression for the file and folder name. Commits containing files matching the pattern are rejected.

    More details

    Various hooks and merge commit checks to check file attributes, like size, name.

    • File Size Hook: Allows to specify a regular expression and size limit. Commits containing files matching the pattern and file size are rejected. E.g. prevents that video and other large binary files are committed. Up to 5 pattern and size combinations can be specified.
    • File Name Hook: Allows to specify a regular expression for the file and folder name. Commits containing files matching the pattern are rejected.

    User reviews

    (6)
    Sign in to write a review »
    by Mark de Bont on 2016-11-23
    Nice, but would like to create an exception for admins/build users etc.
    Was this review helpful?YesNo
    by Fabian Weber on 2016-09-07
    We cant use it with our existing codebase because of the following unfixed bug: https://github.com/christiangalsterer/stash-filehooks-plugin/issues/3
    1 out of 1 found this review helpful
    Was this review helpful?YesNo
    by Peter Lai on 2015-09-02
    I didn't use any of the plugin itself, but the code was a really good example of how to use the stash api.
    Was this review helpful?YesNo

    Pricing

    Support

    File Hooks Plugin isn't formally supported.

    Versions

    Version 2.4.0 Bitbucket Server 4.0.0 - 4.11.2 Released 2016-09-10

    Summary

    Merge request check for file names

    Details

    Performs file name checks also for merge requests, e.g. when creating a pull request.

    Installation

    1. Log into your Bitbucket instance as an admin.
    2. Click the admin dropdown and choose Add-ons. The Manage add-ons screen loads.
    3. Click Find new add-ons from the left-hand side of the page.
    4. Locate File Hooks Plugin via search. Results include add-on versions compatible with your Bitbucket instance.
    5. Click Install to download and install your add-on.
    6. You're all set! Click Close in the Installed and ready to go dialog.

    To find older File Hooks Plugin versions compatible with your instance, you can look through our version history page.

    Similar add-ons