Jenkins 2:如何知道哪个git存储库触发了jenkins作业

时间:2018-11-09 10:34:13

标签: git jenkins

这与how to know which git branch triggered the jenkins job重复,但是下面的答案不能解决,即:

{{ Form::open(['route' => ['addKeluarga' => $getItemregistration->ItemRegistrationID], 'method' => 'POST'])) }}

以上代码仅返回GIT_URL,该JITkinsfile存放在该GIT_URL上。

所以我必须再次回答:

我的工作轮询了三个GIT存储库:
存储库A,存储库B,存储库C
并附上代码:

commit = checkout scm
println commit.GIT_URL

他们的任何提交都会触发我的工作,然后在执行工作期间,我需要告诉哪个存储库触发了工作,以确定正在进行的不同阶段。

如何获取存储库信息?

0 个答案:

没有答案
相关问题