How to set own status message with github-branch-source-plugin ?

39 views
Skip to first unread message

Viacheslav Dubrovskyi

unread,
Oct 22, 2018, 10:24:52 AM10/22/18
to Jenkins Users
Hi

I use multibranch pipeline and github-branch-source-plugin. And I would
like set custom status message in github for commits and branches.

On this page described how to do it
https://github.com/jenkinsci/github-branch-source-plugin/blob/master/docs/implementation.adoc

But I can't understand what command should be in scripted pipeline?

Help me please.

Thank you.

--
WBD,
Viacheslav Dubrovskyi


Steven Foster

unread,
Oct 22, 2018, 10:41:41 AM10/22/18
to Jenkins Users
You can set the status on a github multibranch pipeline using the https://github.com/jenkinsci/github-scm-trait-notification-context-plugin
It does not require anything in the scripted pipeline/Jenkinsfile, it is added on the multibranch pipeline configuration as a behavior (where the branch / PR etc. filter rules are applied).
Press Add and choose "Custom Github Notification Context" and fill in the context there.

This will allow you to set one static context message for every pipeline created by the multibranch job, it doesn't let you dynamically set different messages in the middle of the pipeline.

Viacheslav Dubrovskyi

unread,
Oct 22, 2018, 11:23:52 AM10/22/18
to jenkins...@googlegroups.com

Thank you, Steven!

22.10.2018 17:41, Steven Foster пишет:
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/db4ba4ab-1b5d-4b0b-b7ba-fc9e41d4e788%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- 
WBD,
Viacheslav Dubrovskyi
Reply all
Reply to author
Forward
0 new messages