How to revert the commits from git when CI build fails in VSTS -


i trying create ci/cd pipeline .net core application. whenever commit change local, gets synced remote repository , ci/cd process in vsts triggered. if build fails due reason (say test fails), shouldn't revert changes git repository? please let me know if there way this

no, shouldn't automatically. process needs revamping support workflow.

use pull requests branch policy on target branch merge. branch policy can enforce ci requirement.

you'll create branch, develop in branch, integrate changes target branch branch, then push branch remote , open pr. pr queue build , fail pr if build fails. can make changes correct issue on branch , repeat process.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -