-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
organizations don't work #12
Comments
I have been having this same issue. Firstly, the jenkins user has to be an admin to access the Github APIs in question it needs. I've verified this manually. Secondly, there is an issue with private repos that seems to be resolved but, I'm having trouble using. |
so after the latest update to the github plugin jenkins can now pull down the code. jenkins isn't a collaborator on the repo (don't want to give it push access) but i've added an api token that has (verified) access to write status updates. |
Same here. It does not work for Organizations. Was anyone able to get it working? |
Same problem. It looks like the |
@cloudbring I don't think the bot user needs to have admin access for this to work. I have manual builds working on for a private organization repo when specifying a sha1 build parameter. I can get it to trigger sometimes, but not consistently. I am looking into it. The biggest problem is that there is no polling log that shows what the plugin is doing each time it looks for new PR's to build. This makes it very hard to ensure that job has been setup properly. Things to check:
|
@djspiewak I've took quick look at the github-api and found that there could be problem with organizations. I'll try to investigate more. |
I can now consistently build private organization repositories with no problems. If anyone is having problems with triggering builds, please check the following:
|
I'm still having issues with private organization repos. Basically, I'm getting the same issue as in #15, but recreating the build doesn't resolve the problem. I've tried both using a (known good) access token, as well as a username/password. |
@djspiewak Are you including the username and password in the repository URL? |
I am not. |
I can't reproduce this issue. I have organization with private repository and pullrequest waiting. My bot has |
@janinko Does the bot need Push and Pull access? I think most people assume that the bot only needs Pull access. |
The bot needs Push access to be able to update commit status. |
I am not comfortable giving the bot push access to the repo. I will do some investigation to see if |
My bot has pull access, is using an oauth token with this plugin, with repo and repo:status scopes.
Hitting the url manually, in a browser, works. |
@bendavies Yes, I just saw this too ; / We probably have to patch the github API plugin to play better with oAuth. |
@hradtke i've replicated this locally. The POST to create a status (http://developer.github.com/v3/repos/statuses/) doesn't work. |
Update from Github. This can be closed. |
I didn't think the travis-CI bot had push access to repositories to set the commit status. |
@hradtke I am specifically talking about a user in a team, in organisations, on private repositories. Github confirmed that is the case to me, and they have updated the docs accordingly. |
I am talking about Travis PRO, which works for private repos. |
fair enough. I'm just going on what github told me. |
having an issue getting the bot to build pull requests for my organization. the bot was in a team that had the proper access, but didn't even detect pull requests.
forking the repo to a regular user and making the bot a "collaborator" (and changing nothing but the username in the repo url in jenkins) it worked fine
is this a known problem?
The text was updated successfully, but these errors were encountered: