ashwanthkumar / gocd-build-github-pull-requests

GoCD plugin to build PRs for a Github repo
95 stars 72 forks source link

YAML pipeline definition #117

Open mfornasa opened 6 years ago

mfornasa commented 6 years ago

I wonder if it's possible to trigger this in a pipeline defined in a YAML file.

eddyseager commented 6 years ago

It is using the pluggable scm e.g.

materials: myPluggableGit:

https://eu-gerrit-1.euhpc.arm.com/octopus/gocd-yaml/qe

    scm: 12345
esselius commented 5 years ago

Indeed this works.

Post 19.2.0, you should be able to do this: https://github.com/tomzo/gocd-yaml-config-plugin#pluggable My company haven't upgraded yet and tested though

mirogta commented 4 years ago

Did you mean this? We use the github PR plugin quite extensively with the YAML config repo plugin.

# test.gocd.pipeline
...
    materials:
      test-git-pr:
        plugin_configuration:
          id: github.pr
          version: 1
        options:
          url: git@github.com:user/repository
…