[英]Azure devops skip build pipline
Good morning Guys, I'm looking for a solution what would make a revert on a git repository.早上好,伙计们,我正在寻找一个可以恢复 git 存储库的解决方案。 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.基本上我已经实现了管道任务,当它失败时它会触发另一个使用 git 恢复命令安排恢复的任务,但是该恢复触发构建管道并不是我想要的,你知道如何解决这个查询。
for git I using command对于 git 我使用命令
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我能想到的 2 种方法 - 如果可能的话,将先前提交的 git 提交消息更改为包含***NO_CI***
- 在您的还原管道中有一个任务,通过 API 在您的构建中禁用 CI,重置 ZBA9F11ECC3492D9993B933EDC再次通过 API
I would go with the second option if it was me如果是我,我会选择第二个选项 go
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.