I have a couple of servers:
On gitlab, I have a webhook:
On Push events -> http://{jenkinsIP}:8080/gitlab/build_now
On Jenkins, I have a job:
Source Code Management:
Git:
Repository URL : git@{GitlabIP}:{Gitlabgroup}/{project}.git (copy from gitlab)Credential: key-pair working
Branches to build: */master
Repository browser: gitlab
url: http://{GitlabIP}/{Gitlabgroup}/{project}Version: 6.5.1
Poll SCM
Schedule H/1 * * * *
Any clue why Jenkins isn't running the job?
On Jenkins, you should disable "Poll SCM" and set the "Branches to build" to "master" (not "*/master")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With