- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我们如何从一个存储库中的提交触发管道到另一个存储库中的管道?
这基本上是这里详细提到的尚未解决的问题:
官方文档没有明确说明是否可能 https://learn.microsoft.com/en-us/azure/devops/pipelines/build/triggers?view=azure-devops&tabs=yaml#pipeline-triggers
最佳答案
此功能仍在开发中。 Azure DevOps 服务很快就会提供对 YAML 管道的多存储库支持。
此功能将支持根据多个存储库之一中所做的更改来触发管道。请查看Azure DevOps Feature Timeline或AzureDevOpsRoadmap 。预计将于 2020 年第一季度针对 azure devops 服务推出。
<小时/>目前,您可以按照以下解决方法使用“构建完成”来实现上述目标(管道将在另一个构建完成时触发)。
假设有存储库 A 和存储库 B。您希望在推送到 A 的提交时触发 B 中的管道。
1,为repo A创建一个空的经典管道作为触发管道,它总是会成功并且不执行任何操作。
2、并选中“触发器”选项卡下的“启用持续集成”,并为此触发管道设置 Bracnh 过滤器,以确保在推送提交时触发此空管道。
3、在Repo B管道中设置构建完成触发器。
在 Repo B edit 页面的 yaml pipeline 中,点击右上角的3dots,然后点击Triggers。然后点击构建完成旁边的+添加,并选择上面在步骤1中创建的触发管道作为触发构建。 (也可以在Repo B的yaml管道中定义管道触发器,管道触发器查看here)
4、如果要构建Repo A的代码,还需要再执行一步在Repo B的管道中配置checkout repo。
在 Repo B 的管道中使用 Checkout查看管道中 Repo A 的代码。请引用以下示例:
steps:
- checkout: git://MyProject/Repo A@refs/heads/master # Azure Repos Git repository in the same organization
- task: TaskName
...
关于git - Azure DevOps : Pipeline Trigger CI build on branch in different repositories,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60656386/
我试图让 Branch.io 在 Android 上工作,但我遇到了: myapplication.MainActivity cannot be cast to android.app.Applica
当我执行 git branch 时,我知道我在分支 v0.2 上。 git branch v0.1 * v0.2 但是当我执行 git push 时它说“你当前分支的上游分支与你当前分支的名称不
在使用 Git GUI 检查远程分支 releases/rel_5.4.1 之后,当我尝试 push 时看到了这个意外的错误消息: fatal: The upstream branch of your
SO 上有一个相关问题处理如何更改 push 命令的参数以避免出现此消息: fatal: The upstream branch of your current branch does not mat
arc feature [branch-name] 和 git branch [branch-name] 有什么区别? 他们似乎都创建了一个新分支。 最佳答案 arc feature [branch-
FIFO、LIFO 和LC Branch and Bound 有什么区别? 最佳答案 Branch & Bound 通过使用估计边界来限制可能解决方案的数量来发现完整搜索空间内的分支。不同的类型(FI
有人知道这两个切换和跟踪远程分支的命令之间的区别吗? git checkout -b branch origin/branch git checkout --track origin/branch 我
关于 git-svn 工作流程有很多问题,但我一直无法弄清楚这一点: This section of the svn book谈到 SVN 的一个常见做法:创建一个分支,并在主干更新时不断合并主干中的
我正在构建一个控制 git 存储库的 PHP 应用程序。我有一个执行命令 git status 的同步函数,虽然没有返回“你的分支是最新的”,但可能会提前采取必要的行动,比如远程或本地分支。 我还构建
是否可以使用 branch.io 创建自定义链接,例如 https://example.app.link/fzmLEhobLD所以我可以用我的自定义 10 位参数(如 amitpp8888)控制 fz
我从 github 克隆了一个分支,它的名字是 dev。我已经开始使用它, pull 和推送代码更改并确保我的本地存储库与远程存储库保持同步。我要开始实现一个新功能,因此创建了一个新分支,如下所示:
我们有一个发布模型,为简单起见,我们假设每月 1 次。所以,我们通常会去: Jan -> trunk trunk -> Feb trunk trunk et
使用 Branch.io HTTP API 创建的链接不会在 Branch 门户中显示为快速链接。快速链接很方便,因为它们在一个 View 中显示“点击”、“打开”等内容 用于创建链接的 API:li
我创建了一个分支,当我第一次从源代码合并到分支时,出现了一大堆旧的变更集,它说没有合并,但它们在分支之前就存在,我确认它们在那里。 例子: 假设当 Source 中有 9 个变更集时,我从 Sourc
这是关于我为什么这样做 不是 收到错误“致命:当前分支 A 没有上游分支”。 我删除了 远程 分公司 一个 使用命令 git push origin :A . 然后我切换到本地 分支 A 使用命令 g
我正在使用 clover 插件来检查我的 java 代码测试覆盖率。 我为所有行编写了单元测试。当我点击红线时,它显示“true分支执行了2次,分支执行了0次”。这是什么意思?我该如何解决这个问题?
很确定我误解了 git。 我的目标 我在 github 上有一个带有“master”分支的私有(private)存储库。 我还想有一个生产分支,我会将所有更改从 master 推送到该分支。 然后我想
我将一个相当老的主题分支重新定位到 master 上。由于在 rebase 期间有很多冲突,我想将旧主题分支与 rebased 分支进行比较,以确保我没有意外删除或搞砸主题上的任何更改。我最接近的是比
我正在尝试将我的一个项目推送到 github,但我一直收到此错误: peeplesoft@jane3:~/846156 (master) $ git push fatal: The current b
Jenkins Git 插件根据我的引用规范在控制台输出中生成了以下命令 下面两个命令有什么区别?他们的输出看起来没什么不同。我在下面给出了他们的输出: 命令 1: git fetch --no-ta
我是一名优秀的程序员,十分优秀!