Status: Closed (View Workflow)
I followed the youtube video (https://www.youtube.com/watch?v=0-FugzVYJQU) to install and configure the Bitbucket Server Integration plugin on Jenkins so that a Pipeline can be automatically run when there is a push to our Bitbucket Server. However, after creating the Pipeline in Jenkins, I do not see the webhook being created on my Bitbucket Server. Before that ,I clicked Test Connection and it showed that Jenkins successfully connected to the repository on my Bitbucket server.
The webhook is correctly created on my Bitbucket Server after I create a Freestyle Jenkins project, and the project is automatically triggered upon a push to my Bitbucket server. So I think the issue is just with the Pipeline project.
- is duplicated by
JENKINS-60917 Jenkins Pipeline requires at least one successfull build for the trigger to work
Thanks for providing me with the workaround. I followed it and the webhook was created in Bitbucket Server. Now when we do a push, it automatically triggers our Jenkins pipeline.
Hi Trung, thanks for reporting this. We are aware of the issue and are looking at solutions.
In the meantime, there is a workaround to this issue:
This should trigger the webhook to be created in Bitbucket Server.
If you're having trouble with this solution, you can also create a webhook manually in your repository settings- create it with the URL `http://<jenkins-instance-url>/bitbucket-server-webhook/trigger`, with the secret field empty, and with the "push" event checked.
Feel free to reach out if you have any other issues.