Github status notifier & PR requests builder

21 views
Skip to first unread message

Karl Baillie

unread,
Jul 3, 2022, 7:50:40 AM7/3/22
to go-cd
Hello,

I'm having some issues getting the GH staus notifications to work. The plugins are installed and authentication seems to be OK but notifications are not making it to GH when a PR is created. If anyone has this working could you please post the versions of go server and plugins. 

I'm currently on 
Go Server: 22.1.0 (latest stable)
Github Pull Requests Builder: 1.4.0-RC4

Screen Shot 2022-07-03 at 9.49.54 pm.png


After following the readmes and configuring the plugins "github" is not available as a meterial type. 

I've tried manually creating a Pluggable SCM using GH Pull Requests Builder as the plugin but this still does allow make the material type available to select in pipelines

Screen Shot 2022-07-03 at 9.45.04 pm.png
Default Branch: main

Also receiving logs from plugin-github.pr
ener] GitHubPRBuildPlugin:72 - Triggered build for main with head at 098f6148c1737eab5ef0bda049111cc99e5dbd9b
2022-07-03 11:20:55,938 INFO  [133@MessageListener for MaterialUpdateListener] GitHubPRBuildPlugin:72 - new commits: 1

Screen Shot 2022-07-03 at 9.47.52 pm.png

Any assistance would be greatly appreciated


Chad Wilson

unread,
Jul 3, 2022, 8:03:26 AM7/3/22
to go...@googlegroups.com
Selecting and then creating a 'Plugin material' is (roughly) equivalent to creating a pluggable SCM. You won't see 'github' in the top level list. Try following the 'plugin material' selection and see how you go.

I've never used the GitHub or build plugin so no idea about it's readme, but the GoCD YI/wizard in this area has changed over the past couple of years, not sure if it has been kept up to date.

There are two plugins here responsible for two different things. First you need it to be able to build off commits to the PR branch. That's a prerequisite for the notifications to go back to Github (other than manually configuring a material to point to a PR).

If you have logs saying 'triggered build for main' that seems to imply it did create and trigger something though so I'm a bit confused as to where you are up to.

-Chad

--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/ec316a07-3e4d-4ad4-a8f4-4faefd56a389n%40googlegroups.com.

Karl Baillie

unread,
Jul 3, 2022, 8:47:01 AM7/3/22
to go-cd
Got it working. 

After reading some more doco I had to grab the SCM ID from the config.xml and define it in the pipeline https://github.com/tomzo/gocd-yaml-config-plugin#pluggable.
Also had to remove main as the default branch on GH Pull request builder pluggable SCM config
 
It can take a while for the check to register on the PR, i assume this has something to do with the refresh on the gh repo from the gocd server. 

I hope this saves someone else some time in the future. 

Regards,
Karl
Reply all
Reply to author
Forward
0 new messages