Jenkins 在 Pull-Request creation/update 上从 Git 中提取了什么代码
What code Jenkins pulls from Git on Pull-Request creation/update
当我 opening/updating 从我的 Development-Branch 到 Master-Branch 的 Pull-Request 时,我想要触发詹金斯工作。
这个 Jenkins 作业将从 git (Bitbucket) pull 代码并 build 它。
我最基本的问题是 - 究竟会提取什么代码?
是我的 Development-Branch 的代码,还是 merged 与 Master-Branch 的 Pull-Request 的代码?
虽然Pull-Request还没有合并,也许Jenkins只会模拟合并。
答案是:
Jenkins job will pull the code of the Pull-Request merged with the
Master-Branch and build it.
实际上,触发器只是调用作业启动 运行 跟进管道。
哪个分支实际被拉为定义,
在你的例子中,它是 Master 分支。
当我 opening/updating 从我的 Development-Branch 到 Master-Branch 的 Pull-Request 时,我想要触发詹金斯工作。
这个 Jenkins 作业将从 git (Bitbucket) pull 代码并 build 它。
我最基本的问题是 - 究竟会提取什么代码?
是我的 Development-Branch 的代码,还是 merged 与 Master-Branch 的 Pull-Request 的代码?
虽然Pull-Request还没有合并,也许Jenkins只会模拟合并。
答案是:
Jenkins job will pull the code of the Pull-Request merged with the Master-Branch and build it.
实际上,触发器只是调用作业启动 运行 跟进管道。
哪个分支实际被拉为定义,
在你的例子中,它是 Master 分支。