'How to put your Jenkins console output on a GitHub status page?

I am using Jenkins with GitHub. My Jenkins is run on a server and polls the GitHub repo all the time for new commits. When a commit is made, the Jenkins job gets run and I even see the status on GitHub:

enter image description here

However, if I click on Details, it opens the status of the build on Jenkins:

enter image description here

If I want to see why the job failed then I click on "Console Output" on the left

enter image description here

and see the output: enter image description here

The issue: I would prefer to be able to see the console output on GitHub itself similarly to how you see the status of a GitHub app (for example in the two images below) like this:

enter image description here

enter image description here

edit: or go to this link and check it for yourself.

Is this possible?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source