Multi Project pipeline

I am trying to run multi project pipeline for example A and B. I am able to trigger B from A. But issue is it doesnt wait to get the B process completed.

Essentially my requirement is that unless B is complete it should not go ahead with other stages in A. How can I achieve it.