I pushed code yesterday with some errors maybe because of which build failed, now when I am trying to merge after fixing them, it is not allowing me because the build failed yesterday. I need something like rebuild button.
Hello @Tanmay Mathur and welcome to the Community!
Based on your description, it's likely the case that the repository you are working on has branch restrictions in place that implements the merge check "Minimum number of successful builds for the last commit with no failed builds and no in progress builds" (see Suggest or required checks before a merge).
This will verify the last commit made on the source branch of the pull request and check if it has no failed/in-progress builds and if it meets the minimum number of successful builds. The minimum number of successful builds is configured in the branch restriction itself (Repository Settings > Branch Restrictions).
With that in mind, you will need to check if the last commit you pushed to the source branch of the pull request is meeting that criteria. If no build has run for the last commit yet, you can manually trigger it by opening that commit and clicking on the Run pipeline option :
That will trigger a new build for that particular commit, and the build should now appear on the pull request page.
Hope that helps! Let me know in case you have any questions.
Thank you, @Tanmay Mathur !
Patrik S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.