2
votes

Jenkins error log

Sep 10, 2015 11:26:55 AM org.jenkinsci.plugins.ghprb.GhprbTrigger stop
INFO: Stopping the ghprb trigger for project abc
Sep 10, 2015 11:26:55 AM org.jenkinsci.plugins.ghprb.GhprbTrigger start
INFO: Starting the ghprb trigger for the abc job; newInstance is true
Sep 10, 2015 11:26:55 AM org.jenkinsci.plugins.ghprb.GhprbGitHubAuth getBuilder
WARNING: credentialsId not set for context abc, using anonymous connection
Sep 10, 2015 11:26:57 AM org.jenkinsci.plugins.ghprb.GhprbRepository initGhRepository
SEVERE: Could not retrieve GitHub repository named organization/abc (Do you have properly set 'GitHub project' field in job configuration$
java.io.FileNotFoundException: {"message":"Not Found","documentation_url":"https://developer.github.com/v3"}

In configuration setting Under "Build Triggers" section I have checked "Build when a change is pushed to Github" and "Github Pull Request Builder". I have also checked "Use github hooks for build triggering"

Under "Manage jenkins" -> "Configure System" -> "Github Pull Request Builder" I have set auto generated credentials in "credentials" field.

enter image description here

I have setup webhooks on the github and its working fine for any changes being pushed to the repository but not working for pull request.

1

1 Answers

1
votes

I think that the auto generated credentials are not working.

WARNING: credentialsId not set for context abc, using anonymous connection

You need to generate a token on GitHub (https://github.com/settings/tokens). The default scopes should provide the necessary permissions. Then, in the global Jenkins Pull Request Builder configuration, add new credentials using your GitHub user name and the generated token.