I have a git repository hosted on BitBucket, and have set up SSH authentication between the repository and my Jenkins server. I can build on Jenkins manually, but cannot get the Jenkins service on BitBucket to trigger builds.
Jenkins configuration:
- Project Name: [my_jenkins_job]
- Build Triggers:
--Trigger Builds Remotely:
---Token: [token]
BitBucket configuration:
- Endpoint: http://[my_jenkins_address]/job/[my_jenkins_job]/build (I've also tried build?token=[token])
- Project Name: [my_jenkins_job]
- Module Name: [blank]
- Token: [token]
Visiting http://{my_jenkins_address}/job/{my_jenkins_job}/build?token={token} kicks off a build properly.
Why doesn’t pushing a change to BitBucket cause Jenkins to initiate a build?
I have our Jenkins instance set up to poll the repository every minute. Is that not frequent enough for your needs?
Our Jenkins configuration:
Build Triggers > Poll SCM = Checked
Build Triggers > Poll SCM > Schedule =