Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-65651

bitbucket-plugin not recognising self-hosted repo from trigger payload in multi-branch pipelines

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • bitbucket-plugin
    • None
    • Jenkins: 2.277.4
      bitbucket-plugin: 1.1.27

      Job type: multi-branch pipeline
    • 1.1.28

      Summary: the Bitbucket plugin is not triggering builds when receiving the Git push payload from Bitbucket server.

      Details:

      When a payload is received the following is logged (I set this message to INFO):

      2021-05-17 05:44:22.687+0000 [id=12]    INFO    c.c.j.plugins.BitbucketJobProbe#triggerMatchingJobs: SCM [example] doesn't match remote repo [prj/example]
      

      Firstly there appears to be no config option to override the Bitbucket push URL in a multi-branch pipeline job (at least not in the UI). The single branch pipeline does seem to have such an option.

      Now the Bitbucket Server "project" key is set in the job configuration and it then lists the actual repository just fine. But no matter what I try I can't get the Bitbucket plugin to "see" the repo as "prj/example" OR get the SCM configuration to use "prj/example".

      The project key setting is present in the job config but I don't see a way to make the SCM source combine it to be "prj/example".

            tzach_solomon Tzach Solomon
            ftclausen Friedrich Clausen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: