Build not triggered when change is pushed to bitbucket

1,029 views
Skip to first unread message

Rohit Sharma

unread,
Jan 21, 2016, 10:43:55 AM1/21/16
to Jenkins Users
Hello Everyone,

I am using the jenkins version 1.625.3. And i am facing issues in integrating jenkins with bitbucket. What all i need to do is to trigger a job when a change is pushed to bitbucket. But unfortunately its not working and I am continuously getting the 500 error response code on webhook configured on bitbucket.
Please help me out in this.

Thanks
Rohit

Slide

unread,
Jan 21, 2016, 11:07:46 AM1/21/16
to Jenkins Users

Perhaps it would help if you gave some more information about your configuration, things you have tried, exact error messages, etc. Your request is somewhat lacking in that regard.


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9f9a6a3d-c504-45c4-8239-79d129ee3e6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vladimir Zak

unread,
Jan 21, 2016, 10:24:20 PM1/21/16
to jenkins...@googlegroups.com
Hello,

I use the mask plugin and standard mercurial plugin for bitbucket. Polling is working without any problem. I do not use webhook, it is not necessary.

But maybe your problem could be in proxy if you are behind it. If yes, I would suggest to add proxy to the connection of hg.

Here is my setting for connecting to bitbucket.

I hope it will help you.

Vladimir






From: slide...@gmail.com
Date: Thu, 21 Jan 2016 16:07:21 +0000
Subject: Re: Build not triggered when change is pushed to bitbucket
To: jenkins...@googlegroups.com
bitbucket.png

Rohit Sharma

unread,
Jan 22, 2016, 4:56:45 AM1/22/16
to Jenkins Users
Hello Slide,

I configured the free style job in jenkins and checked the git option under SCM. And under Build Triggers i selected the option which states "Build when a change is pushed to BitBucket" there after i taking shell login to remote server using Publish Over SSH plugin to pull the latest code from bitbucket. Another thing which i did to make it work is added a webhook in bitbucket to send push notificaion to jenkins.

Now to test i did test commit on repository and got 500 error when checked the logs of push events generated at bitbucket console. 

And to resolve this i tried all the solutions provided at :

Apart from this I also whitelisted all the IP's provided at bitbucket on server where jenkins was setup. IN order to make jenkins work but still no success.

Thanks
Rohit

Slide

unread,
Jan 22, 2016, 8:47:15 AM1/22/16
to Jenkins Users
You shouldn't need to use Publish Over SSH to get the source code, the git plugin will clone it for you already.  Did you check if you have something similar to the setup described here?


Reply all
Reply to author
Forward
0 new messages