[JIRA] (JENKINS-60649) Bitbucket Server Integration plugin does not work for Pipelines

15 views
Skip to first unread message

Trung.H.Nguyen@L3Harris.com (JIRA)

unread,
Jan 6, 2020, 11:44:03 AM1/6/20
to jenkinsc...@googlegroups.com
Trung Nguyen created an issue
 
Jenkins / Bug JENKINS-60649
Bitbucket Server Integration plugin does not work for Pipelines
Issue Type: Bug Bug
Assignee: Kristy Hughes
Components: atlassian-bitbucket-server-integration-plugin
Created: 2020-01-06 16:43
Priority: Blocker Blocker
Reporter: Trung Nguyen

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

Trung.H.Nguyen@L3Harris.com (JIRA)

unread,
Jan 6, 2020, 11:45:02 AM1/6/20
to jenkinsc...@googlegroups.com

mhenschke@atlassian.com (JIRA)

unread,
Jan 13, 2020, 6:38:05 PM1/13/20
to jenkinsc...@googlegroups.com
Martin Henschke commented on Bug JENKINS-60649
 
Re: Bitbucket Server Integration plugin does not work for Pipelines

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:

  • Create your pipelines project as normal.
  • Within that project, start a build of that project and wait for it to resolve (it does not need to be successful, just running it is enough)
  • Once completed, click "configure" to go back to the project configuration
  • Ensure the "Bitbucket Server trigger build after push" build trigger is checked
  • Save the project configuration

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.

Trung.H.Nguyen@L3Harris.com (JIRA)

unread,
Jan 15, 2020, 1:55:02 PM1/15/20
to jenkinsc...@googlegroups.com

Hi Martin,

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.

Thanks,

Trung Nguyen

mhenschke@atlassian.com (JIRA)

unread,
Feb 4, 2020, 4:04:08 PM2/4/20
to jenkinsc...@googlegroups.com

mhenschke@atlassian.com (JIRA)

unread,
Feb 4, 2020, 4:04:09 PM2/4/20
to jenkinsc...@googlegroups.com
Martin Henschke started work on Bug JENKINS-60649
 
Change By: Martin Henschke
Status: Open In Progress

mhenschke@atlassian.com (JIRA)

unread,
Feb 11, 2020, 1:57:03 AM2/11/20
to jenkinsc...@googlegroups.com

mhenschke@atlassian.com (JIRA)

unread,
Feb 11, 2020, 1:58:03 AM2/11/20
to jenkinsc...@googlegroups.com
Change By: Martin Henschke
Status: In Review Fixed but Unreleased
Resolution: Fixed

mhenschke@atlassian.com (JIRA)

unread,
Feb 27, 2020, 11:48:06 PM2/27/20
to jenkinsc...@googlegroups.com
Change By: Martin Henschke
Status: Fixed but Unreleased Closed
Released As: 1.1.0
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages