2017-06-16 126 views
2

我想让Jenkins在我的GitLab存储库发生更改时构建我的项目。我查了选项jenkins如何在gitlab发生更改时触发构建

Build when a change is pushed to GitLab. GitLab CI Service URL: http://172.172.10.21:8090/project/myproject/myproject_frontend 

和子选项

Push Events 
Merge Request Events 
Rebuild open Merge Request 
Comments 
Comment for triggering a build 

而且我查

Check repository (SCM) ((without schedules)) 

它不喜欢这个工作。

缺什么?

在此先感谢

回答

1

从它的外观,你已经在使用Gitlab Plugin for Jenkins,你只需要:

  • 去你Gitlab库,转到回购的“集成”部分设置:

enter image description here

  • 然后,设置网络挂接网址为:https://<jenkins-host>:<port>/project/<your job>

enter image description here

这样Gitlab将在您的詹金斯工作进行POST请求,每次都会发生选定的触发时间,如果你有这将触发你的工作任务配置指定的事件以触发构建。

+0

谢谢,谢谢。现在它正在工作!!!!! – ABT

相关问题