Jenkins and Gitlab: Webhook isn't running

后端 未结 4 2043
时光取名叫无心
时光取名叫无心 2021-02-20 17:47

I have a couple of servers:

  1. Jenkins
  2. Gitlab

On gitlab, I have a webhook:

On Push events -> http://{jenkinsIP}:8080/gitlab         


        
4条回答
  •  我寻月下人不归
    2021-02-20 18:12

    There could be multiple problems.

    For one, I don't see why you create a WebHook on Gitlab, and use Poll SCM on Jenkins: either use Trigger builds remotely on Jenkins with a WebHook on Gitlab, or Poll SCM on Jenkins but then also enable some Credentials for the git repo on Jenkins' side (most probably SSH deploy key).

    Other than that, builds are actually triggered if the git repo changes: what branches are configured on Jenkins' side ?

    Note, I haven't tested the Gitlab plugin for Jenkins yet.

提交回复
热议问题