简体   繁体   中英

Azure devops skip build pipline

Good morning Guys, I'm looking for a solution what would make a revert on a git repository. Basically I had on realized pipeline task when it fails it will trigger another one what schedule a revert using a git revert command but that rever trigger a build pipeline what not exactly thing what I want, do you have some idea how to solve this query.

for git I using command

git reset --hard <last good commit>
git push --force origin <release branch>

2 ways I can think of - if possible change the git commit message of the previous commit to contain ***NO_CI*** - have a task in your revert pipeline to disable CI on your build via API, reset git, then enable CI via API again

I would go with the second option if it was me

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM