GitHub release plugin configuration for github enterprise

Hi there,

I am currently trying to get DroneCI running with our Github Enterprise server.

Just setting the base_url seems not to be sufficient, can anyone give me a hint on what the upload_url should look like?

Kind greetings,
Matthias

I am having the same issue trying to get the github_release drone.ci plugin to work with our GHE instance.

It looks like the plugin is adding in a unnecessary “repos/” directory to the URL. Is there a way to configure the plugin to not add this extra “repos”?

Example error from github_release plugin:

Release v1.1.2 not found
time="2019-11-15T17:39:00Z"
level=fatal
msg="Failed to create the release."
POST
http://my.github.server/repos/my_GHE_organization/my_package/releases: 422 []"
                        ^^^^ without this "repos/" the URL would work

Any suggestions?

When you provide base_url I believe it needs to be in the format of http://my.github.server/api/v3 for GHE

1 Like

That was it!!! Thanks Brad!

For anyone else, the upload_url for GHE should be

http://my.github.server/api/uploads