We no longer offer sales and support for server apps. You can stay connected by exploring the migration options to either the cloud or Data Center version of this app.
Rejects pushes to stash when the commits contain invalid yaml files
Enabled on a per repository basis
You can enable/disable this plugin in the hooks settings on the repository.
A reject from the command line
This screen shot shows the explanation from the command line when attempting to push to the repository.
A reject from Sourcetree
This shows the reject of the push in a GUI application
This is a fail fast plugin. When the first invalid yaml file is encountered it fails without checking the rest of the file. At that point you can commit the fix and attempt another push, at which point it will run until if finds another invalid file where it will inform the user.