Open biolauri opened 4 years ago
Hi @biolauri. I've used it successfully with GHE. I'm wondering whether there's any interesting errors in the log? The most likely problem is that the Jenkins user that accesses GitHub doesn't have permissions to update statuses. Can you check that?
@biolauri - did you get this working yet?
Oh, I'm so sorry! No, unfortunately not. And many thanks for your fast reply!
I didn't see anything in the Pipeline log. Is there any other log where I can dig into?
The token has the full repo scope and its user has admin rights on the repo itself. So permission-wise that should be fine, I think.
Hi @biolauri. There might be something in the logs. To capture those:
After running some jobs you can go back and look at what the plugin has written to the log, and paste it here.
Thanks! In the logs, I found Could not find commit sha - status will not be provided for this build
, so it seems to be that
returns null
.
I looked into it a bit: With only a single pipeline, it fails, but it works nice if setting up a GitHub org pipeline. So that's my workaround for now, but I think this should also be possible w/o the organization as it's sometimes inconvenient to have the whole org in Jenkins.
This might be a duplicate of #26 & #50 and it's not related to using GitHub Enterprise Server (AFAIK: I didn't test it with GitHub.com, but reading through these issues).
I would like to request support for GitHub Enterprise Server. This shouldn't be that difficult as the API endpoints remain the same (with only changing the FQDN).
Or did I miss something? I just tried it and it didn't work. If yes, sorry for disturbing! 😀