AVIDeveloper
AVIDeveloper

Reputation: 3496

Error when trying to set build status

Jenkins v1.629, GitHub Plugin v1.13.3. An SSH key was set up and SSH'ing [email protected] is successfully authenticated.

Pre/Post build events: Set build status [to "Pending"] on GitHub commit fail to execute.

Here's the main part of the exception the is thrown:

org.jenkinsci.plugins.github.config.GitHubServerConfig$1 applyNullSafe
WARNING: Failed to login with creds 
java.io.IOException: Server returned HTTP response code: 401 for URL: https://api.github.com/user

After some digging, I got to the Jenkins Configure System page, and under GitHub Plugin Configuration, I am unable to perform either of the following:

Bug of Feature?

Upvotes: 1

Views: 455

Answers (1)

AVIDeveloper
AVIDeveloper

Reputation: 3496

In lack of replies for quite a few months, I'll sum up by saying the desired behavior was to link Jenkins to GitHub commits such that the CI builder will mark a GitHub commit with either a green V (success) or a red X (failure).

I couldn't achieve this behavior with the GitHub Plugin, not even in 1.4+ versions (which were reported as should-be-working-now).

Eventually I managed to achieve the desired behavior via the GitHub Pull Request Builder Plugin

Here's an example image from a good tutorial on the subject:

enter image description here

Upvotes: 2

Related Questions