Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Don't commit when pipeline validation fail

Veronika_Lesnakova July 11, 2019

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!

1 answer

1 accepted

1 vote
Answer accepted
jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 12, 2019

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.

Veronika_Lesnakova July 15, 2019

Thank you for your reply. This actually makes sense.

Like A G likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events