gocd-build-github-pull-requests icon indicating copy to clipboard operation
gocd-build-github-pull-requests copied to clipboard

Bitbucket PR will not trigger pipeline

Open patrijua opened this issue 6 years ago • 4 comments

Hi! I would need some help on how to use Stash Pull Requests Builder (https://github.com/ashwanthkumar/gocd-build-github-pull-requests) when pipelines are defined in yaml. Currently, I have a pipeline defined:

pipelines:
  bitbuketti: # name of pipeline
    group: Bitbucket
    materials:
      myPluggableGit: # name of material
        plugin_configuration:
          id: stash.pr
          version: 1.4.0-RC2
        options:
          url: https://[USERNAME]:[PASSWORD]@bitbucket.org/jpatrikainen/buketti.git
        destination: destinationDir

Pipeline was triggered when GoCD took this yml into use, it succesfully used material from master, but it will not trigger to any pull request I make in Bitbucket from some feature branches to master branch. Why it does not trigger? Should that "Default Branch" be defined in yml? If so, how?

patrijua avatar Jan 21 '20 13:01 patrijua

Tried this also by creating pipeline manually in GoCD as instructed in in plugin documentation, it did not help. Still the pipeline will not trigger. Plugin also does now write any logs to from where I could debug. Also noticed that when I trigger pipeline manually, it does not use latest commit from master, instead it uses the first commit on master branch. @ashwanthkumar please could you have a look at this, would be important for us to get this to work asap. Thanks!!!

patrijua avatar Jan 22 '20 11:01 patrijua

Experimented also github-pr-poller-1.4.0-RC2.jar with Github, it does work OK, but we need to get BitBucket integration to work.

patrijua avatar Jan 22 '20 13:01 patrijua

Hmmh, noticed this: https://github.com/ashwanthkumar/gocd-build-github-pull-requests/issues/46 If I understand correctly, it seems that there's no plans to implement Bitbucket/Gitlab support to this plugin.

patrijua avatar Jan 23 '20 07:01 patrijua

Just a quick follow up -- we now have support for Gitlab added in https://github.com/ashwanthkumar/gocd-build-github-pull-requests/pull/149 and available from https://github.com/ashwanthkumar/gocd-build-github-pull-requests/releases/tag/v1.4.0-RC4.

ashwanthkumar avatar Sep 22 '20 13:09 ashwanthkumar