I'm using pipelines in Bitbucket and PHPUnit code. Validation is done on every git push. I would like to know if it is possible to cancel push (don't commit changes) when validation doesn't pass. At the moment, git push pushes the committed code even if pipelines validation doesn't pass.
Any suggestions/recommendations would be great!
This is not possible. Pipelines can't test any commits until it has them - and it doesn't get them until the push is complete.
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.