gocd-yaml-config-plugin
gocd-yaml-config-plugin copied to clipboard
Implement ashwanthkumar/gocd-build-github-pull-requests
We would like to integrate the plugin ashwanthkumar/gocd-build-github-pull-requests..
Currently we are doing with manual templates, I would like to be able to add by yaml code, thank you very much for your work
Hi @marandalucas
It is already possible to make references to pluggable materials. The limitation is that you still need to keep scms element in XML.
For example, when your github PR plugin is configured in XML with
<scms>
<scm id="7e0072f2-dd30-4cdc-b618-336be0e5e14d" name="Portal-pull-request">
<pluginConfiguration id="github.pr" version="1" />
<configuration>
<property>
<key>url</key>
<value>mygit_repo</value>
</property>
<property>
<key>username</key>
<value>blablabla</value>
</property>
<property>
<key>password</key>
<encryptedValue>gjhgjhghgjhgjhghjgj</encryptedValue>
</property>
</configuration>
</scm>
</scms>
You can use that in yaml with
...
materials:
myPluggableGit:
scm: 7e0072f2-dd30-4cdc-b618-336be0e5e14d
...
But if that is too much a limitation and you want to implement storing scms in yaml, that is also possible. Although 99% of work will be on server side in https://github.com/gocd/gocd . I can help with that.
Let me know if above config is what you needed, I am not sure if that actually works. But I know a few people are using github PR plugin, you search the chat
For reference, the server side issue for building feature branches https://github.com/gocd/gocd/issues/6123