ghprb icon indicating copy to clipboard operation
ghprb copied to clipboard

Set conditional status

Open IanVS opened this issue 10 years ago • 3 comments

In my build, if linting checks fail, I abort the build and fail right away. Right now, this means the status which is reported back is "no test results found". I would like to report back to GitHub that linting failed, instead. Is there any way to do this? I see in the docs:

Adding lines from the build log to the build result message

which sounds like what I need, but I can't figure out how to accomplish it. Any help or explanation would be greatly appreciated.

IanVS avatar Dec 03 '15 05:12 IanVS

@janinko is it possible to achieve what I am looking for? Is it clear what I'm asking?

IanVS avatar Dec 08 '15 13:12 IanVS

Any suggestions?

IanVS avatar Mar 21 '16 02:03 IanVS

In your job configuration, find Trigger Setup under Build Triggers > GitHub Pull Request Builder. Look for "Commit Status Build Result", click Add and specify custom messaging for Build Result ERROR.

adion avatar Aug 03 '16 14:08 adion