In the pact contract testing I have configured the CI/CD pipeline. Currently Can I deploy and record deployment job in the CI/CD pipeline are non-blocking.
Reason for non-blocking because I found deadlock scenario in the pact contract testing(where provider is not able to proceed with Can I deploy and record deployment due to this consumer is not able to can I deploy and record deployment). To avoid it currently I have made the can I deploy non blocking.
In consumer/provider CI/CD configuration "Can I deploy" job is before the "record deployment".
Is it possible to make the can I deploy job as blocking step in the CI/CD pipeline, Should I fail the build once Can I deploye is failing? If deadlock scenarios are there how to handle that.