Gitlab webhook does not trigger a build on jenkins

前端 未结 4 1421
野的像风
野的像风 2021-02-07 07:39

I\'ve a group of multibranch pipeline jobs generated with the following piece groovy script:

[
      \'repo1\',
      \'repo2\',
].each { service ->

  multib         


        
4条回答
  •  误落风尘
    2021-02-07 08:07

    We were facing similar (not the same) issues with gitlab and Jenkins and the problem was related with the credentials.

    In Jenkins, we created a new global Access token for GitLab (Jenkins Configuration -> Credentials -> System -> New Global access -> Define a gitlab token). That generates a Token that we added it to the Webhook, now the hook being something like:

    http://[Gitlab User]:[token ID]@Jenkins Address
    

    I hope it helps

提交回复
热议问题