How to use the POST url in bitbucket on private Jenkins?
I have been experiencing problems with bitbucket and their post commit.
Description :
http://username:password@myjenkins.instance/job/myproject/build?token=mytoken
I have a jenkins instance I would like to trigger on push on certain repositories. Since the jenkins is accessible from the outside (the world wide web), it is protected through the typical user/password system.
When working with Github, I can define the usename and password directly in the URL. When checking the nginx logs, it is clear that github is able to convert that url to login the user. Bitbucket is not.
Here are some nginx logs showing the problem.
Bitbucket post logs :
- - "POST /job/myproject/build?token=mytoken HTTP/1.1" 403 216 "-" "Bitbucket.org"
The interesting part is the 403 error. Acces refused.
Same logs for the Github post hook:
- github - "POST /job/myproject/build?token=mytoken HTTP/1.1" 302 0 "-" "-"
AS the logs show, github is the name of the user I created with the good rights for launching builds.
What can I possibly do to enable the post hook?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…