Show build results in Bitbucket for PR's from forked repo

XMLWordPrintable

    • 2
    • 4

      For a repo forked from a main repo. Once we created a pull request with source branch from forked repo to destination as main repo master branch.
      Now when we use it as bamboo specs file which says to create bamboo plan branch which accepts forks. as per below config:-

      branches:
      create:
      for-pull-request:
      accept-fork: true

      The plan branch is created fine, builds are triggered fine as well.

      However the pull request page does not show the build status in Bitbucket both in the main and the forked repo.

      Additionally the build status also doesnt show up in the Bitbucket UI both in the main and the forked repo.

      Have a feature to view the build result from forked repo in Bitbucket UI instead of viewing it in Bamboo.

      Steps to replicate :-

      1. Create a repo in Bitbucket.
      2. Create directory bamboo-specs
      3. cd bamboo-specs
      4. Create a file bamboo.yml
      5. Add the below contents to the yaml file


      version: 2
      plan:
      project-key: BAM
      name: PLAN2
      key: PLAN2
      stages:

      • Default Stage:
        jobs:
      • Default Job
        Default Job:
        tasks:
      • script:
      • echo "hello world!"
        branches:
        create:
        for-pull-request:
        accept-fork: true

      6. In Bamboo create an applink to Bitbucket
      7. Add the repo as linked repo and scan for specs
      8. Fork the repo in Bitbucket
      9. Create a newbranch in the fork repo.
      10. Create pull request from the new branch in fork repo to the main branch in main repo.
      11. Plan branch is created in Bamboo and build is trigeered.
      12. Status of build and pull request is not seen in the forked repo or in the main repo.

            Assignee:
            Unassigned
            Reporter:
            Anik Sengupta
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: