Code changed in jenkins
User: Markus Winter
JENKINS-42536 fix ansi console note (#62)
When a line starts with a console note we trimmed the leading escape
character before passing it to the removeNotes method. This makes it not
recognize as a console note. So trim after removing the notes.
*NOTE:* This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.