ExportXMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor
    • None
    • Environment:
      Jenkins Version: 2.580.2
      Plugin Version: 2.4.3
      Bitbucket Type: Bitbucket Cloud (SaaS)

      Jenkins Version: 2.580.2
      Plugin Version: 2.4.3
      Bitbucket Type: Bitbucket Cloud (SaaS)

      Hi Team,

      We are encountering an issue with Jenkins jobs not being triggered by commits from Bitbucket Cloud.

      Current Setup

      • All Bitbucket Cloud UAT webhooks are configured at the workspace level and point to our central ingress proxy.
      • The Jenkins job in question is a Freestyle Job that uses the Generic Webhook Trigger plugin.
      • The job expects webhook requests to be received through the following endpoint:

      https://test-k8s-jenkins.com/generic-webhook-trigger/invoke?token=<token>

      Problem Statement

      When commits are made to repositories in Bitbucket Cloud, we do not see the corresponding Jenkins job being triggered.

      The Generic Webhook Trigger plugin relies on a predefined token to authenticate and process webhook requests. However, since webhook events are originating from Bitbucket Cloud and webhook tokens are managed internally within Jenkins, we do not have a mechanism to provide or validate the required Jenkins token through the workspace-level Bitbucket webhook configuration.

      As a result, webhook events appear to reach the ingress layer, but the Jenkins freestyle job is not being triggered.

      Request

      Could you please help us understand the recommended approach for integrating Bitbucket Cloud workspace-level webhooks with Jenkins Generic Webhook Trigger jobs?

      Specifically:

      1. How should authentication/token validation be handled when using workspace-level Bitbucket Cloud webhooks?
      2. Is there a supported mechanism to route webhook events from the central ingress proxy to Jenkins jobs that require Generic Webhook Trigger tokens?
      3. Are there any existing patterns or references within the organization for triggering Jenkins Freestyle jobs from Bitbucket Cloud webhooks without exposing job-specific tokens?
      4. Would repository-level webhooks be required for this use case, or is there a recommended alternative solution?

      Any guidance or examples of similar implementations would be appreciated.

            Assignee:
            Tomas Bjerre
            Reporter:
            William Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: