How is this a .NET related question, @Divya Parappanavar?
Is this a question about publishing / verifying contracts? Did it work previously? Or has it never worked? Are you pushing contracts to the same broker on the same GitLab Agent? Is this a self-hosted agent or a cloud / public instance?
Have you tried adding a step that performs a cUrl with the right API call to see what the response is?