How to connect Bitbucket to Jenkins properly

后端 未结 6 1394
说谎
说谎 2021-01-30 10:41

Since about 1 week now, Bitbucket doesn\'t (?) send a request to my Jenkins server.

I\'ve set it all up like this:

Endpoint http://username:

6条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-30 10:57

    I had this problem and it turned out the issue was that I had named my repository with CamelCase. Bitbucket automatically changes the URL of your repository to be all lower case and that gets sent to Jenkins in the webhook. Jenkins then searches for projects with a matching repository. If you, like me, have CamelCase in your repository URL in your project configuration you will be able to check out code, but the pattern matching on the webhook request will fail.

    Just change your repo URL to be all lower case instead of CamelCase and the pattern match should find your project.

提交回复
热议问题